mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-16 23:20:22 +02:00
gmain: Document threading properties of g_source_is_destroyed()
https://bugzilla.gnome.org/show_bug.cgi?id=778049
This commit is contained in:
@@ -3063,6 +3063,12 @@ g_main_current_source (void)
|
|||||||
* }
|
* }
|
||||||
* ]|
|
* ]|
|
||||||
*
|
*
|
||||||
|
* Calls to this function from a thread other than the one acquired by the
|
||||||
|
* #GMainContext the #GSource is attached to are typically redundant, as the
|
||||||
|
* source could be destroyed immediately after this function returns. However,
|
||||||
|
* once a source is destroyed it cannot be un-destroyed, so this function can be
|
||||||
|
* used for opportunistic checks from any thread.
|
||||||
|
*
|
||||||
* Returns: %TRUE if the source has been destroyed
|
* Returns: %TRUE if the source has been destroyed
|
||||||
*
|
*
|
||||||
* Since: 2.12
|
* Since: 2.12
|
||||||
|
Reference in New Issue
Block a user