|
My Project
|
#include <PipeQueue.h>
Classes | |
| class | MsgQueue |
| class | QueueNode |
Public Member Functions | |
| PipeQueue () | |
| ~PipeQueue () | |
| PipeState | write (void *buffer, size_t nbyte, long timeout=PIPE_NOWAIT) |
| PipeState | read (void *buffer, size_t nbyte, long timeout=PIPE_NOWAIT) |
Public Member Functions inherited from gcp::util::Pipe | |
| Pipe () | |
| virtual | ~Pipe () |
| virtual void | readPipe (void *buffer, size_t nbyte, long timeout) |
| virtual void | writePipe (void *buffer, size_t nbyte, long timeout) |
| int | fd () |
| fd_set | rfds () |
| int | readFd () |
| int | writeFd () |
Public Attributes | |
| Mutex | queueGuard_ |
| MsgQueue | messages_ |
Additional Inherited Members | |
Protected Member Functions inherited from gcp::util::Pipe | |
| void | getTimeOfDay (struct timespec *ts) |
Protected Attributes inherited from gcp::util::Pipe | |
| pthread_mutex_t | guard_ |
| bool | guardIsReady_ |
| PipeFd | readfd_ |
| PipeFd | writefd_ |
| char | unread_ [PIPE_BUF] |
| size_t | nread_ |
A class to encapsulate a pipe
| PipeQueue::PipeQueue | ( | ) |
| PipeQueue::~PipeQueue | ( | ) |
|
virtual |
Read from the pipe.
| Exception | ....................................................................... Read from the PipeQueue. This should only be called after select() has returned because new data are available. |
Reimplemented from gcp::util::Pipe.
|
virtual |
Write to the pipe.
| Exception | ....................................................................... Write a new message to the PipeQueue |
Reimplemented from gcp::util::Pipe.