32 #ifndef _QORE_QOREQUEUE_H
34 #define _QORE_QOREQUEUE_H
36 #include <qore/QoreThreadLock.h>
37 #include <qore/QoreCondition.h>
41 class qore_queue_private;
44 friend class qore_queue_private;
47 qore_queue_private* priv;
51 DLLEXPORT QoreQueue(
int n_max = -1);
54 DLLEXPORT QoreQueue(
const QoreQueue& orig);
59 DLLEXPORT ~QoreQueue();
83 DLLEXPORT
bool empty()
const;
88 DLLEXPORT
int size()
const;
91 DLLEXPORT
int getMax()
const;
94 DLLEXPORT
unsigned getReadWaiting()
const;
97 DLLEXPORT
unsigned getWriteWaiting()
const;
113 DLLEXPORT
void clearError();
118 DLLEXPORT
virtual ~Queue();
121 DLLEXPORT Queue(
int max = -1);
123 DLLEXPORT Queue(
const Queue& old);
125 DLLEXPORT Queue* queueRefSelf()
const;
130 #endif // _QORE_QOREQUEUE_H
the base class for all data to be used as private data of Qore objects
Definition: AbstractPrivateData.h:44
The base class for all value and parse types in Qore expression trees.
Definition: AbstractQoreNode.h:54
Qore's string value type, reference counted, dynamically-allocated only.
Definition: QoreStringNode.h:50
virtual DLLLOCAL void deref()
decrements the reference count of the object without the possibility of throwing a Qore-language exce...
Definition: AbstractPrivateData.h:67
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:47