BlockingQueue Class Template Reference
#include <BlockingQueue.h>
Inheritance diagram for BlockingQueue:
Public Member Functions | |
BlockingQueue () | |
Create a new BlockingQueue. | |
virtual | ~BlockingQueue () |
Destroy this BlockingQueue. | |
virtual void | add (const 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 void | acquire () |
virtual bool | tryAcquire (unsigned long timeout) |
virtual void | release () |
Detailed Description
template<class T, class LockType, typename StorageType = std::deque<T>>
class ZThread::BlockingQueue< T, LockType, StorageType >
- Author:
- Eric Crahen <http://www.code-foo.com>
- Date:
- <2003-07-16T12:01:43-0400>
- Version:
- 2.3.0
Member Function Documentation
|
Acquire the Lockable object. This method may or may not block the caller for an indefinite amount of time. Those details are defined by specializations of this class.
Implements Lockable. |
|
|
|
Implements Queue. |
|
Implements Queue. |
|
Implements Cancelable. |
|
Get a value from this Queue. The calling thread may block indefinitely.
Implements Queue. |
|
Get a value from this Queue. The calling thread may block indefinitely.
Implements Queue. |
|
Release the Lockable object. This method may or may not block the caller for an indefinite amount of time. Those details are defined by specializations of this class.
Implements Lockable. |
|
Implements Queue. |
|
Implements Queue. |
|
Attempt to acquire the Lockable object. This method may or may not block the caller for a definite amount of time. Those details are defined by specializations of this class; however, this method includes a timeout value that can be used to limit the maximum amount of time that a specialization could block.
Implements Lockable. |
The documentation for this class was generated from the following file:
- BlockingQueue.h