AsyncQueue.timedPopUnlocked

Warning g_async_queue_timed_pop_unlocked is deprecated and should not be used in newly-written code. use g_async_queue_timeout_pop_unlocked(). Pops data from the queue. If the queue is empty, blocks until end_time or until data becomes available. If no data is received before end_time, NULL is returned. To easily calculate end_time, a combination of g_get_current_time() and g_time_val_add() can be used. This function must be called while holding the queue's lock.

class AsyncQueue
void*
timedPopUnlocked

Parameters

endTime GTimeVal

a GTimeVal, determining the final time

Return Value

Type: void*

data from the queue or NULL, when no data is received before end_time.

Meta