Beamlib 3.1.1
This is the Beam C++ class library.
|
Provides a thread save queue of objects that can be used to communicate between threads. More...
#include <BQueue.h>
Public Member Functions | |
BQueue (BUInt size) | |
~BQueue () | |
void | clear () |
Clear the queue. More... | |
BUInt | writeAvailable () const |
BError | write (const T &v, BTimeout timeout=BTimeoutForever) |
Append an item onto the queue. More... | |
BUInt | readAvailable () const |
BError | read (T &v, BTimeout timeout=BTimeoutForever) |
Get an item from the queue. More... | |
Provides a thread save queue of objects that can be used to communicate between threads.
|
virtual |
Clear the queue.
Reimplemented from BList< T >.
BError BQueue< T >::write | ( | const T & | v, |
BTimeout | timeout = BTimeoutForever |
||
) |
Append an item onto the queue.
BError BQueue< T >::read | ( | T & | v, |
BTimeout | timeout = BTimeoutForever |
||
) |
Get an item from the queue.