#include <LockedQueue.h>
Inheritance diagram for LockedQueue:
Public Methods | |
LockedQueue () | |
Create a LockedQueue. | |
virtual | ~LockedQueue () throw () |
Destroy a LockedQueue. | |
virtual void | add (T item) |
virtual bool | add (T item, unsigned long timeout) |
virtual T | next () |
virtual T | next (unsigned long timeout) |
virtual void | cancel () |
virtual bool | isCanceled () |
virtual size_t | size () |
virtual size_t | size (unsigned long timeout) |
|
Adds an object to this Queue. This method will block the calling thread until exclusive access to the Queue can be obtained, until an exception is thrown or until the given amount of time expires.
Implements Queue. |
|
Adds an object to this Queue. This method will block the calling thread until exclusive access to the Queue can be obtained or until an exception is thrown.
Implements Queue. |
|
Cancel this queue. This method will block the calling thread until exclusive access to the Queue can be obtained or until an exception is thrown.
Implements Queue. |
|
Determine if this Queue has been cancel()ed. This method will block the calling thread until exclusive access to the Queue can be obtained or until an exception is thrown.
Implements Cancelable. |
|
Get an object from this Queue. This method will block the calling thread until exclusive access to the Queue can be obtained or until an exception is thrown.
Implements Queue. |
|
Get an object from this Queue. This method will block the calling thread until exclusive access to the Queue can be obtained or until an exception is thrown.
Implements Queue. |
|
Count the items present in this Queue. This method will block the calling thread until exclusive access to the Queue can be obtained or until an exception is thrown.
Implements Queue. |
|
Count the items present in this Queue. This method will block the calling thread until exclusive access to the Queue can be obtained or until an exception is thrown.
Implements Queue. |