rllib
1
|
#include <rlfifo.h>
Classes | |
struct | _MessageList_ |
Public Types | |
enum | FifoEnum { DATA_AVAILABLE =-1, NO_DATA_AVAILABLE =-2, MESSAGE_TO_BIG =-3, FIFO_FULL =-4 } |
Public Member Functions | |
rlFifo (int maxmessages=0) | |
virtual | ~rlFifo () |
int | read (void *buf, int maxlen) |
int | poll () |
int | nmesAvailable () |
int | write (const void *buf, int len) |
int | printf (const char *format,...) |
Private Types | |
typedef struct rlFifo::_MessageList_ | MessageList |
Private Attributes | |
int | maxmes |
int | nmes |
MessageList * | list |
WSEMAPHORE | semaphore |
pthread_mutex_t | mutex |
|
private |
enum rlFifo::FifoEnum |
Enumerator | |
---|---|
DATA_AVAILABLE | |
NO_DATA_AVAILABLE | |
MESSAGE_TO_BIG | |
FIFO_FULL |
rlFifo::rlFifo | ( | int | maxmessages = 0 | ) |
Definition at line 22 of file rlfifo.cpp.
|
virtual |
Definition at line 31 of file rlfifo.cpp.
int rlFifo::nmesAvailable | ( | ) |
Definition at line 99 of file rlfifo.cpp.
int rlFifo::poll | ( | ) |
Definition at line 93 of file rlfifo.cpp.
int rlFifo::printf | ( | const char * | format, |
... | |||
) |
Definition at line 142 of file rlfifo.cpp.
int rlFifo::read | ( | void * | buf, |
int | maxlen | ||
) |
Definition at line 51 of file rlfifo.cpp.
int rlFifo::write | ( | const void * | buf, |
int | len | ||
) |
Definition at line 105 of file rlfifo.cpp.
|
private |
|
private |
|
private |