Qore Programming Language Reference Manual: lib/QC_Queue.dox.h Source File

Qore Programming Language Reference Manual 0.8.11

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

All Classes Namespaces Functions Variables Groups Pages
QC_Queue.dox.h
1 namespace Qore::Thread {
4
13 class Queue {
14
15 public:
17
22 nothing clear();
23
24 public:
26
37 constructor(int max = -1);
38
39 public:
41 /***/
42 copy();
43
44 public:
46
50 destructor();
51
52 public:
54
66 bool empty();
67
68 public:
70
82 any get(timeout timeout_ms = 0);
83
84 public:
86
100 int getReadWaiting();
101
102 public:
104
116 int getWaiting();
117
118 public:
120
132 int getWriteWaiting();
133
134 public:
136
147 nothing insert(any arg, timeout timeout_ms = 0);
148
149 public:
151
161 int max();
162
163 public:
165
177 any pop(timeout timeout_ms = 0);
178
179 public:
181
192 nothing push(any arg, timeout timeout_ms = 0);
193
194 public:
196
206 int size();
207 };
208 };
Qore::Thread::Queue::clear
nothing clear()
Clears the Queue of all data.
Qore::Thread::Queue::push
nothing push(any arg, timeout timeout_ms=0)
Pushes a value on the end of the queue.
Qore::Thread::Queue::size
int size()
Returns the number of elements in the Queue.
Qore::Thread::Queue::max
int max()
Returns the upper limit of the number of elements in the Queue.
Qore::Thread::Queue::empty
bool empty()
Returns True if the Queue is empty, False if not.
Qore::Thread::Queue::constructor
constructor(int max=-1)
Creates the Queue object.
Qore::Thread::Queue::getReadWaiting
int getReadWaiting()
Returns the number of threads currently blocked on this queue for reading.
Qore::Thread::Queue
Queue objects provide a blocking, thread-safe message-passing object to Qore programs ...
Definition: QC_Queue.dox.h:13
Qore::Thread::Queue::insert
nothing insert(any arg, timeout timeout_ms=0)
Inserts a value at the beginning of the queue.
Qore::Thread::Queue::destructor
destructor()
Destroys the Queue object.
Qore::Thread::Queue::getWriteWaiting
int getWriteWaiting()
Returns the number of threads currently blocked on this queue for writing.
Qore::Thread::Queue::copy
copy()
Creates a new Queue object with the same elements and maximum size as the original.
Qore::Thread::Queue::getWaiting
int getWaiting()
Returns the number of threads currently blocked on this queue for reading.
Qore::Thread::Queue::pop
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...