mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-10 11:14:05 +02:00
Merge branch '2404-task-docs-main-context' into 'main'
gtask: Document dependency on GMainContext more explicitly Closes #2404 See merge request GNOME/glib!2264
This commit is contained in:
@@ -58,6 +58,10 @@
|
|||||||
* use g_task_propagate_pointer() or the like to extract the
|
* use g_task_propagate_pointer() or the like to extract the
|
||||||
* return value.
|
* return value.
|
||||||
*
|
*
|
||||||
|
* Using #GTask requires the thread-default #GMainContext from when the
|
||||||
|
* #GTask was constructed to be running at least until the task has completed
|
||||||
|
* and its data has been freed.
|
||||||
|
*
|
||||||
* Here is an example for using GTask as a GAsyncResult:
|
* Here is an example for using GTask as a GAsyncResult:
|
||||||
* |[<!-- language="C" -->
|
* |[<!-- language="C" -->
|
||||||
* typedef struct {
|
* typedef struct {
|
||||||
|
Reference in New Issue
Block a user