#include <MonitoredQueue.h>
Inheritance diagram for MonitoredQueue:
Public Methods | |
MonitoredQueue () | |
Create a new MonitoredQueue. | |
virtual | ~MonitoredQueue () throw () |
Destroy a MonitoredQueue, delete remaining items. | |
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) |
virtual bool | empty () |
virtual bool | empty (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. |
|
Test this Queue to see if it is empty. This will block the calling thread until the Queue becomes empty.
Reimplemented from Queue. |
|
Test this Queue to see if it is empty. This will block the calling thread until the Queue becomes empty.
Reimplemented from 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 an item arrives in the Queue or until an exception is thrown.
Implements Queue. |
|
Get an object from this Queue. This method will block the calling thread until an item arrives in the Queue or until an exception is thrown.
Implements Queue. |
|
Count the items present in this Queue. This method will not block the calling thread.
Implements Queue. |
|
Count the items present in this Queue. This method will not block the calling thread.
Implements Queue. |