If the RT and the server part are NOT in the same process, the POSIX message queue is used. The class provides the structure of the POSIX message queue and its corresponding functions.
More...
|
| IpcMsgQueue (const std::string &name, std::size_t maxNMessages, std::size_t maxMessageSize, std::size_t nDiagMessages, bool blocking) |
| Constructor. More...
|
|
| ~IpcMsgQueue () |
| Destructor.
|
|
std::size_t | getNMessages () const |
| Get the number of messages that are currently in the queue. More...
|
|
void | postMsg (const AbstractMessage *msg) |
| Put a message into the queue. More...
|
|
const AbstractMessage * | consumeMsg () |
| Wait for the next message in the queue, retrieve the message and consume the message by resetting the message pointer. More...
|
|
void | purge () |
| Delete all the messages in the queue. More...
|
|
void | unlink () |
| Remove the message queue This member function should be called at process shutdown when the other process is not running.
|
|
virtual | ~AbstractMsgQueue () |
| Destructor.
|
|
const std::string & | getName () const |
| Get the queue's name. More...
|
|
std::size_t | getMaxNMessages () const |
| Get the maximal number of messages the queue can contain. More...
|
|
virtual std::size_t | getMaxMessageSize () const |
| Get the maximal size of a message in bytes. More...
|
|
bool | isFull () const |
| Check if the queue is full. More...
|
|
bool | isAlmostFull () const |
| Check if the queue is "almost" full (i.e. only diagnostics messages are allowed) More...
|
|
void | checkState (uint32_t msgPrio) const |
| Check if the queue is full or "almost" full. More...
|
|
If the RT and the server part are NOT in the same process, the POSIX message queue is used. The class provides the structure of the POSIX message queue and its corresponding functions.