#include <LockedQueue.h>
Inheritance diagram for ZThread::LockedQueue::
Public Methods | |
LockedQueue () | |
virtual | ~LockedQueue () throw () |
virtual void | add (T item) throw (Synchronization_Exception) |
virtual T | next () throw (Synchronization_Exception) |
virtual T | next (unsigned long timeout) throw (Synchronization_Exception) |
virtual void | cancel () throw (Synchronization_Exception) |
virtual bool | isCanceled () throw (Synchronization_Exception) |
virtual bool | empty () throw (Synchronization_Exception) |
Protected Attributes | |
LOCK | _lock |
Serialize access. | |
std::deque<T> | _data |
Backing deque. | |
bool | _canceled |
Cancellation flag. |
|
Create a new LockedQueue |
|
Destroy the Queue |
|
Add a new object to this Queue
Reimplemented from ZThread::Queue. |
|
Cancel this queue. No more objects can be added to it
Reimplemented from ZThread::Queue. |
|
Test this queue to see if it is empty. This method may or may not block the caller, it is completely up to the implementation to decide weather or not it is appropriate to block the caller.
Reimplemented from ZThread::Queue. |
|
Check the cancelation status of this Queue
Reimplemented from ZThread::Cancelable. |
|
Get an object from this Queue within a given amount of time
Reimplemented from ZThread::Queue. |
|
Get an object from this Queue
Reimplemented from ZThread::Queue. |