2 #ifndef __libquark_util_AsyncQueue_hxx 3 #define __libquark_util_AsyncQueue_hxx 6 #include <QWaitCondition> 17 template<
typename T>
class AsyncQueue :
private QQueue<T*>
45 T*
take(
int timeout = -1);
56 QWaitCondition _condP;
57 QWaitCondition _condC;
60 #include <quark/AsyncQueueImpl.h++> 65 #endif // __libquark_util_AsyncQueue_hxx An asynchronous queue which can be accessed from multiple threads in a threadsafe way...
Definition: AsyncQueue.h++:17
void clear()
Clears the queue.
Definition: BarChartView.h++:6
AsyncQueue(uint capacity)
Constructs a new AsyncQueue with the given maximum capacity.
T * take(int timeout=-1)
Removes an item from the head of the queue.
void offer(T *item)
Offers an item to the queue.