mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-05 05:09:21 +02:00
GAsyncQueue: Add some useful api
The underlying queue supports removing and pushing items to the front, and these operations can sometimes be useful. https://bugzilla.gnome.org/show_bug.cgi?id=751160
This commit is contained in:
@@ -97,6 +97,19 @@ void g_async_queue_sort_unlocked (GAsyncQueue *queue,
|
||||
GCompareDataFunc func,
|
||||
gpointer user_data);
|
||||
|
||||
GLIB_AVAILABLE_IN_2_46
|
||||
gboolean g_async_queue_remove (GAsyncQueue *queue,
|
||||
gpointer item);
|
||||
GLIB_AVAILABLE_IN_2_46
|
||||
gboolean g_async_queue_remove_unlocked (GAsyncQueue *queue,
|
||||
gpointer item);
|
||||
GLIB_AVAILABLE_IN_2_46
|
||||
void g_async_queue_push_front (GAsyncQueue *queue,
|
||||
gpointer item);
|
||||
GLIB_AVAILABLE_IN_2_46
|
||||
void g_async_queue_push_front_unlocked (GAsyncQueue *queue,
|
||||
gpointer item);
|
||||
|
||||
GLIB_DEPRECATED_FOR(g_async_queue_timeout_pop)
|
||||
gpointer g_async_queue_timed_pop (GAsyncQueue *queue,
|
||||
GTimeVal *end_time);
|
||||
|
Reference in New Issue
Block a user