Merge branch 'th/gdbus-doc-unsubscribe-idle' into 'master'

gdbus: document completion after idle action for g_dbus_connection_signal_unsubscribe()

See merge request GNOME/glib!2050
This commit is contained in:
Philip Withnall 2021-05-17 10:49:38 +00:00
commit f71faad46b
2 changed files with 10 additions and 0 deletions

View File

@ -3715,6 +3715,9 @@ unsubscribe_id_internal (GDBusConnection *connection,
* g_dbus_connection_signal_subscribe() is called, in order to avoid memory
* leaks through callbacks queued on the #GMainContext after its stopped being
* iterated.
* Alternatively, any idle source with a priority lower than %G_PRIORITY_DEFAULT
* that was scheduled after unsubscription, also indicates that all resources
* of this subscription are released.
*
* Since: 2.26
*/

View File

@ -1370,6 +1370,10 @@ g_source_destroy_internal (GSource *source,
*
* This function is safe to call from any thread, regardless of which thread
* the #GMainContext is running in.
*
* If the source is currently attached to a #GMainContext, destroying it
* will effectively unset the callback similar to calling g_source_set_callback().
* This can mean, that the data's #GDestroyNotify gets called right away.
*/
void
g_source_destroy (GSource *source)
@ -1761,6 +1765,9 @@ g_source_set_callback_indirect (GSource *source,
* It is safe to call this function multiple times on a source which has already
* been attached to a context. The changes will take effect for the next time
* the source is dispatched after this call returns.
*
* Note that g_source_destroy() for a currently attached source has the effect
* of also unsetting the callback.
**/
void
g_source_set_callback (GSource *source,