template <class T> class TdNetReceivingDock

Template class for queuing asynchronous network events.

Public Methods

TdNetReceivingDock()
Constructor.
~TdNetReceivingDock()
Destructor.
void receiveItem(T item)
Put an item into the dock.
T processItem()
Remove an item from the dock.
void clearDock()
Clear the dock of all items.
bool empty() const
Check if the dock is empty. Return true if it is empty, false otherwise.
void lockDock()
Lock the dock prior to calling empty, receiving an item or process item
void unlockDock()
Unlocks the dock mutex.
int size() const
Returns the number of items in the dock.

Documentation

Template class for queuing asynchronous network events.
TdNetReceivingDock()
Constructor.

~TdNetReceivingDock()
Destructor.

void receiveItem(T item)
Put an item into the dock.

T processItem()
Remove an item from the dock.

void clearDock()
Clear the dock of all items.

bool empty() const
Check if the dock is empty. Return true if it is empty, false otherwise.

void lockDock()
Lock the dock prior to calling empty, receiving an item or process item. Locking scheme for processing an item: lockDock if !empty, processItem, unlock dock

Locking scheme for receive lockDock receive Item unlockDock

void unlockDock()
Unlocks the dock mutex.

int size() const
Returns the number of items in the dock.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de