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) |
![]() | |
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 | |
![]() | |
void | getTimeOfDay (struct timespec *ts) |
![]() | |
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.