mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-29 12:24:12 +02:00
gmain: Officially deprecate g_main_context_wait()
It’s been de-facto deprecated for a long time, due to emitting a critical warning when used in a non-internal context. Make that official in the documentation and with a deprecation annotation. Split the implementation into an internal helper and an external wrapper, so the two remaining internal uses don’t emit deprecation warnings. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://gitlab.gnome.org/GNOME/glib/issues/903
This commit is contained in:
@@ -376,7 +376,7 @@ GLIB_AVAILABLE_IN_ALL
|
||||
void g_main_context_release (GMainContext *context);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_main_context_is_owner (GMainContext *context);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GLIB_DEPRECATED_IN_2_58_FOR(g_main_context_is_owner)
|
||||
gboolean g_main_context_wait (GMainContext *context,
|
||||
GCond *cond,
|
||||
GMutex *mutex);
|
||||
|
Reference in New Issue
Block a user