#include <mtsMailBox.h>
mtsMailBox::mtsMailBox |
( |
const std::string & |
name, |
|
|
size_t |
size, |
|
|
mtsCallableVoidBase * |
postCommandQueuedCallable = 0 |
|
) |
| |
mtsMailBox::~mtsMailBox |
( |
void |
| ) |
|
bool mtsMailBox::ExecuteNext |
( |
void |
| ) |
|
Execute the oldest command queued.
const std::string& mtsMailBox::GetName |
( |
void |
| ) |
const |
mtsCommandVoid* mtsMailBox::GetPostCommandDequeuedCommand |
( |
void |
| ) |
const |
mtsCommandVoid* mtsMailBox::GetPostCommandReturnDequeuedCommand |
( |
void |
| ) |
const |
bool mtsMailBox::IsEmpty |
( |
void |
| ) |
const |
Returns true if mailbox is empty.
bool mtsMailBox::IsFull |
( |
void |
| ) |
const |
Returns true if mailbox is full.
void mtsMailBox::SetPostCommandDequeuedCommand |
( |
mtsCommandVoid * |
command | ) |
|
Set the command to be called after a blocking command is de-queued and executed. This can be used to call a trigger for event. The event handler on the client site can then raise a thread signal.
void mtsMailBox::SetPostCommandReturnDequeuedCommand |
( |
mtsCommandVoid * |
command | ) |
|
Set the command to be called after a blocking command with return value is de-queued and executed. This can be used to call a trigger for event. The event handler on the client site can then raise a thread signal.
void mtsMailBox::SetSize |
( |
size_t |
size | ) |
|
Resize the mailbox, i.e. resizes the underlying queue of commands. This command is not thread safe and shouldn't be used if commands are already queued or can be queued. The SetSize methods deletes whatever command has been queued.
Write a command to the mailbox. If a post command queued command has been provided, the command is executed.
The documentation for this class was generated from the following file:
- /home/adeguet1/catkin_ws/src/cisst-saw/cisst/cisstMultiTask/mtsMailBox.h