timed_pop


Description:

public G timed_pop (ref TimeVal end_time)

Pops data from the this.

Note:

use g_async_queue_timeout_pop.

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 TimeVal and add can be used.

Parameters:

this

a AsyncQueue

end_time

a TimeVal, determining the final time

Returns:

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