If the real-time and the server parts are in the same process, the STL queue is used. The class provides the structure of the local message queue and its corresponding functions.
More...
#include <LocalMsgQueue.h>
|
| AbstractMsgQueue (const std::string &name, std::size_t maxNMessages, std::size_t nDiagMessages) |
| Constructor. More...
|
|
If the real-time and the server parts are in the same process, the STL queue is used. The class provides the structure of the local message queue and its corresponding functions.
fesa::LocalMsgQueue::LocalMsgQueue |
( |
const std::string & |
name, |
|
|
std::size_t |
maxNMessages, |
|
|
std::size_t |
nDiagMessages |
|
) |
| |
- Parameters
-
name | identifier of the queue |
maxNMessages | The maximal number of messages the queue can contain |
nDiagMessages | The number of messages that are reserved for diagnostics |
Wait for the next message in the queue, retrieve the message and consume the message by resetting the message pointer.
- Returns
- The pointer to the consumed message
- Exceptions
-
Implements fesa::AbstractMsgQueue.
std::size_t fesa::LocalMsgQueue::getNMessages |
( |
| ) |
const |
|
virtual |
Get the number of messages that are currently in the queue.
- Returns
- The number of messages in the queue
Implements fesa::AbstractMsgQueue.
void fesa::LocalMsgQueue::purge |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following files:
- LocalMsgQueue.h
- LocalMsgQueue.cpp