EpcTools
An event based multi-threaded C++ development framework.
|
Defines the functionality for the thread queue. More...
#include <etevent.h>
Public Member Functions | |
Bool | push (const T &msg, Bool wait=True) |
Adds the specified message to the thread event queue. More... | |
Bool | pop (T &msg, Bool wait=True) |
Removes the next message from the thread event queue. More... | |
Bool | peek (T &msg, Bool wait=True) |
Retrievees the next message from the thread event queue without removing the message from the queue. More... | |
Bool | isInitialized () |
Retrieves indication if this queue object has been initialized. More... | |
EThreadQueueMode | mode () |
Retrieves the access mode associated with this queue object. More... | |
Defines the functionality for the thread queue.
This is a templated class. The template parameter is the message class. This allows for a developer to provide a custom event message definition.
|
inline |
Retrieves indication if this queue object has been initialized.
|
inline |
Retrieves the access mode associated with this queue object.
|
inline |
Retrievees the next message from the thread event queue without removing the message from the queue.
msg | a reference to a message object that will be populated with the message. |
wait | indicates whether this function should wait for space to become available in the queue. |
|
inline |
Removes the next message from the thread event queue.
msg | a reference to a message object that will be populated with the message. |
wait | indicates whether this function should wait for space to become available in the queue. |
|
inline |
Adds the specified message to the thread event queue.
msg | a reference to the message to add. |
wait | indicates whether this function should wait for space to become available in the queue. |