Module dglib.AQueue
| Constructor Summary | |
|---|---|
|
(GAsyncQueue* gAsyncQueue) |
|
| public |
() Get a new GAsyncQueue with the ref_count 1 |
| Methods Summary | |
|---|---|
| void |
lock() Lock AQueue. |
| void |
unlock() UnLock AQueue. |
| void |
ref() /* Ref and unref the GAsyncQueue. |
| void |
refUnlocked() |
| void |
unref() |
| void |
unrefAndUnlock() |
| void |
push(void* data) /* Push data into the async queue. |
| void |
pushUnlocked(void* data) |
| gpointer |
pop() /* Pop data from the async queue. |
| gpointer |
popUnlocked() |
| gpointer |
tryPop() /* Try to pop data. |
| gpointer |
tryPopUnlock() |
| gpointer |
timedPop(GTimeVal *end_time) /* Wait for data until at maximum until end_time is reached. |
| gpointer |
timedPopUnlocked(GTimeVal *end_time) |
| gint |
length() /* Return the length of the queue. |
| gint |
lengthUnlocked() |