docs: Clarify the thread-default GMainContext where the result is sent

https://bugzilla.gnome.org/show_bug.cgi?id=783825
This commit is contained in:
Debarshi Ray 2017-06-16 14:16:41 +02:00
parent 3eacec1587
commit 3c5b59ddca

View File

@ -84,9 +84,10 @@
* from the point where it is called. g_simple_async_result_complete_in_idle() * from the point where it is called. g_simple_async_result_complete_in_idle()
* will finish it from an idle handler in the * will finish it from an idle handler in the
* [thread-default main context][g-main-context-push-thread-default] * [thread-default main context][g-main-context-push-thread-default]
* . g_simple_async_result_run_in_thread() will run the * where the #GSimpleAsyncResult was created.
* job in a separate thread and then deliver the result to the * g_simple_async_result_run_in_thread() will run the job in a
* thread-default main context. * separate thread and then use
* g_simple_async_result_complete_in_idle() to deliver the result.
* *
* To set the results of an asynchronous function, * To set the results of an asynchronous function,
* g_simple_async_result_set_op_res_gpointer(), * g_simple_async_result_set_op_res_gpointer(),