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();
62 DLLEXPORT
void pushAndTakeRef(
QoreValue n);
101 DLLEXPORT
bool empty()
const;
104 DLLEXPORT
size_t size()
const;
107 DLLEXPORT ptrdiff_t getMax()
const;
110 DLLEXPORT
size_t getReadWaiting()
const;
113 DLLEXPORT
size_t getWriteWaiting()
const;
142 DLLEXPORT
void clearError();
147 DLLEXPORT
virtual ~Queue();
150 DLLEXPORT Queue(
int max = -1);
152 DLLEXPORT Queue(
const Queue& old);
154 DLLEXPORT Queue* queueRefSelf()
const;
159 #endif // _QORE_QOREQUEUE_H the base class for all data to be used as private data of Qore objects
Definition: AbstractPrivateData.h:44
Qore's string value type, reference counted, dynamically-allocated only.
Definition: QoreStringNode.h:50
The main value class in Qore, designed to be passed by value.
Definition: QoreValue.h:262
the implementation of Qore's object data type, reference counted, dynamically-allocated only ...
Definition: QoreObject.h:61
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:46