AsyncQueue.timedPopUnlocked

void * timedPopUnlocked(glib.time_val.TimeVal endTime)

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 [glib.global.getRealTime] and [glib.time_val.TimeVal.add] can be used.

This function must be called while holding the queue's lock.

Parameters

endTimea #GTimeVal, determining the final time

Returns

data from the queue or null, when no data is

received before end_time.

Deprecated

use [glib.async_queue.AsyncQueue.timeoutPopUnlocked].