[glib] docs: Explain how GAsyncReadyCallbacks are, and should be, invoked
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] docs: Explain how GAsyncReadyCallbacks are, and should be, invoked
- Date: Thu, 26 Oct 2017 12:09:02 +0000 (UTC)
commit 09d936c528d7c534332f2d38d3e25178b6baaa4e
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Jun 16 14:15:03 2017 +0200
docs: Explain how GAsyncReadyCallbacks are, and should be, invoked
https://bugzilla.gnome.org/show_bug.cgi?id=783825
gio/giotypes.h | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/gio/giotypes.h b/gio/giotypes.h
index 380b9a7..738e517 100644
--- a/gio/giotypes.h
+++ b/gio/giotypes.h
@@ -264,7 +264,13 @@ typedef struct _GVolumeMonitor GVolumeMonitor;
* @user_data: user data passed to the callback.
*
* Type definition for a function that will be called back when an asynchronous
- * operation within GIO has been completed.
+ * operation within GIO has been completed. #GAsyncReadyCallback
+ * callbacks from #GTask are guaranteed to be invoked in a later
+ * iteration of the
+ * [thread-default main context][g-main-context-push-thread-default]
+ * where the #GTask was created. All other users of
+ * #GAsyncReadyCallback must likewise call it asynchronously in a
+ * later iteration of the main context.
**/
typedef void (*GAsyncReadyCallback) (GObject *source_object,
GAsyncResult *res,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]