Method

GLibAsyncQueuetimeout_pop

Declaration [src]

gpointer
g_async_queue_timeout_pop (
  GAsyncQueue* queue,
  guint64 timeout
)

Description [src]

Pops data from the queue. If the queue is empty, blocks for timeout microseconds, or until data becomes available.

If no data is received before the timeout, NULL is returned.

Parameters

timeout

Type: guint64

The number of microseconds to wait.

Return value

Type: gpointer

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

The returned data is owned by the instance.
The return value can be NULL.