Document that various functions ref GSimpleAsyncResult

Patch by Will Thompson, see bug 602417.
This commit is contained in:
Matthias Clasen 2010-01-02 19:50:55 -05:00
parent f58fa69343
commit a91514ba19

View File

@ -607,7 +607,10 @@ complete_in_idle_cb (gpointer data)
* Completes an asynchronous function in an idle handler in the <link
* linkend="g-main-context-push-thread-default">thread-default main
* loop</link> of the thread that @simple was initially created in.
**/
*
* Calling this function takes a reference to @simple for as long as
* is needed to complete the call.
*/
void
g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple)
{
@ -697,7 +700,10 @@ run_in_thread (GIOSchedulerJob *job,
* Runs the asynchronous job in a separate thread and then calls
* g_simple_async_result_complete_in_idle() on @simple to return
* the result to the appropriate main loop.
**/
*
* Calling this function takes a reference to @simple for as long as
* is needed to run the job and report its completion.
*/
void
g_simple_async_result_run_in_thread (GSimpleAsyncResult *simple,
GSimpleAsyncThreadFunc func,