Top | ![]() |
![]() |
![]() |
![]() |
This provides a way to feed work items to the main loop using a GAsyncQueue without polling it.
void (*RBAsyncQueueWatchFunc) (gpointer item
,gpointer data
);
Callback to call when an item is found in the queue.
guint rb_async_queue_watch_new (GAsyncQueue *queue
,gint priority
,RBAsyncQueueWatchFunc callback
,gpointer user_data
,GDestroyNotify notify
,GMainContext *context
);
Creates a new GSource that triggers when the GAsyncQueue is non-empty. This is used in rhythmbox to process queues within RhythmDB in the main thread without polling.