 |
Qore Programming Language Reference Manual
0.9.4.2
|
98 auto get(timeout timeout_ms = 0);
163 nothing
insert(
auto arg, timeout timeout_ms = 0);
193 auto pop(timeout timeout_ms = 0);
208 nothing
push(
auto arg, timeout timeout_ms = 0);
nothing push(auto arg, timeout timeout_ms=0)
Pushes a value on the end of the queue.
int getWaiting()
Returns the number of threads currently blocked on this queue for reading.
nothing insert(auto arg, timeout timeout_ms=0)
Inserts a value at the beginning of the queue.
int size()
Returns the number of elements in the Queue.
int max()
Returns the upper limit of the number of elements in the Queue.
Queue objects provide a blocking, thread-safe message-passing object to Qore programs
Definition: QC_Queue.dox.h:17
auto pop(timeout timeout_ms=0)
Blocks until at least one entry is available on the queue, then returns the last entry in the queue....
int getWriteWaiting()
Returns the number of threads currently blocked on this queue for writing.
copy()
Creates a new Queue object with the same elements and maximum size as the original.
destructor()
Destroys the Queue object.
bool empty()
Returns True if the Queue is empty, False if not.
int getReadWaiting()
Returns the number of threads currently blocked on this queue for reading.
constructor(int max=-1)
Creates the Queue object.
nothing clear()
Clears the Queue of all data.
auto get(timeout timeout_ms=0)
Blocks until at least one entry is available on the queue, then returns the first entry in the queue....
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
clearError()
clears the error setting from the Queue; if error information is set, then after this call,...
setError(string err, string desc)
sets an error status on the Queue and clears the Queue; while a Queue object has an error status,...