57 return osize - onumber.value();
61 return onumber.value();
67 if(!onumber.waitLessThanOrEqual(osize - 1, 0, timeout))
81 if(!onumber.waitMoreThanOrEqual(1, 1, timeout))
@ ErrorTimeout
Definition: BError.h:23
BQueue< BInt32 > BQueueInt
Definition: BQueue.h:40
const BTimeout BTimeoutForever
Definition: BTypes.h:46
BUInt32 BUInt
Definition: BTypes.h:33
BUInt32 BTimeout
Definition: BTypes.h:45
Thread conditional value.
Definition: BCondInt.h:16
Error return class. This class is used to return the error status from a function....
Definition: BError.h:31
BError & set(int errNo, BString errStr="")
Set error number and message.
Definition: BError.cpp:24
Template based list class.
Definition: BList.h:31
unsigned int size() const
Number of items in list.
Definition: BList_func.h:99
virtual void clear()
Clear the list.
Definition: BList_func.h:115
void queueAdd(const T &i)
Add item to end of list.
Definition: BList_func.h:195
T queueGet()
Get item from front of list deleteing item.
Definition: BList_func.h:199
Mutex class. Note these are recursive Mutexes and so you need to make sure the number of unlocks equa...
Definition: BMutex.h:14
Provides a thread save queue of objects that can be used to communicate between threads.
Definition: BQueue.h:20
BQueue(BUInt size)
Definition: BQueue.h:43
~BQueue()
Definition: BQueue.h:47
BError read(T &v, BTimeout timeout=BTimeoutForever)
Get an item from the queue.
Definition: BQueue.h:78
BUInt writeAvailable() const
Definition: BQueue.h:56
void clear()
Clear the queue.
Definition: BQueue.h:50
BUInt readAvailable() const
Definition: BQueue.h:60
BError write(const T &v, BTimeout timeout=BTimeoutForever)
Append an item onto the queue.
Definition: BQueue.h:64