1 namespace Qore::Thread {
82 any
get(timeout timeout_ms = 0);
147 nothing
insert(any arg, timeout timeout_ms = 0);
177 any
pop(timeout timeout_ms = 0);
192 nothing
push(any arg, timeout timeout_ms = 0);
nothing clear()
Clears the Queue of all data.
nothing push(any arg, timeout timeout_ms=0)
Pushes a value on the end 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.
bool empty()
Returns True if the Queue is empty, False if not.
constructor(int max=-1)
Creates the Queue object.
int getReadWaiting()
Returns the number of threads currently blocked on this queue for reading.
Queue objects provide a blocking, thread-safe message-passing object to Qore programs ...
Definition: QC_Queue.dox.h:13
nothing insert(any arg, timeout timeout_ms=0)
Inserts a value at the beginning of the queue.
destructor()
Destroys the Queue object.
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.
int getWaiting()
Returns the number of threads currently blocked on this queue for reading.
any pop(timeout timeout_ms=0)
Blocks until at least one entry is available on the queue, then returns the last entry in the queue...