From 42369df7c659b3a0f43530bd09288df0cea709b4 Mon Sep 17 00:00:00 2001 From: Garrett Regier Date: Thu, 20 Oct 2016 00:14:33 -0700 Subject: [PATCH] task: Add scope annotation to run_in_thread{,_sync}() Without specifying the scope, the two functions are non-introspectable and GTask cannot be used meaningfully by bindings. Related: https://gitlab.gnome.org/GNOME/glib/issues/668 --- gio/gtask.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/gtask.c b/gio/gtask.c index 9950bb36b..06f63e7b1 100644 --- a/gio/gtask.c +++ b/gio/gtask.c @@ -1497,7 +1497,7 @@ g_task_start_task_thread (GTask *task, /** * g_task_run_in_thread: * @task: a #GTask - * @task_func: a #GTaskThreadFunc + * @task_func: (scope async): a #GTaskThreadFunc * * Runs @task_func in another thread. When @task_func returns, @task's * #GAsyncReadyCallback will be invoked in @task's #GMainContext. @@ -1540,7 +1540,7 @@ g_task_run_in_thread (GTask *task, /** * g_task_run_in_thread_sync: * @task: a #GTask - * @task_func: a #GTaskThreadFunc + * @task_func: (scope async): a #GTaskThreadFunc * * Runs @task_func in another thread, and waits for it to return or be * cancelled. You can use g_task_propagate_pointer(), etc, afterward