AsyncQueue
An opaque data structure which represents an asynchronous queue.
It should only be accessed through the g_async_queue_*
functions.
Skipped during bindings generation
method
ref
: Return type AsyncQueue is unsupportedfunction
new
: Return type AsyncQueue is unsupportedparameter
item_free_func
: DestroyNotify
Constructors
Functions
Returns the length of the queue.
Pops data from the @queue. If @queue is empty, this function blocks until data becomes available.
Pushes the @item into the @queue. @item must not be null. In contrast to g_async_queue_push(), this function pushes the new item ahead of the items already in the queue, so that it will be the next one to be popped off the queue.
Pushes the @item into the @queue. @item must not be null. In contrast to g_async_queue_push_unlocked(), this function pushes the new item ahead of the items already in the queue, so that it will be the next one to be popped off the queue.
Inserts @data into @queue using @func to determine the new position.
Inserts @data into @queue using @func to determine the new position.
Pushes the @data into the @queue.
Increases the reference count of the asynchronous @queue by 1.
Remove an item from the queue.
Sorts @queue using @func.
Sorts @queue using @func.
Pops data from the @queue. If the queue is empty, blocks until
Pops data from the @queue. If the queue is empty, blocks for
Pops data from the @queue. If the queue is empty, blocks for
Tries to pop data from the @queue. If no data is available, null is returned.
Decreases the reference count of the asynchronous @queue by 1 and releases the lock. This function must be called while holding the @queue's lock. If the reference count went to 0, the @queue will be destroyed and the memory allocated will be freed.