From 0fa5895d6218269cce31315c36cb588c72a52fe0 Mon Sep 17 00:00:00 2001 From: Fabiano FidĂȘncio Date: Wed, 23 Mar 2016 03:50:40 +0100 Subject: Introduce gtask-helper.[ch] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As noticed, GTask's heurestic for return a task in idle or immediately doesn't work when using Coroutine and that's okay, we just need to do the idle ourself. And in order to avoid code duplication, let's introduce and make usage of the new g_task_helper_return_* functions. These functions match exactly with the existing g_task_return_* functions and the only difference is that they return on idle instead of returning immediately. Signed-off-by: Fabiano FidĂȘncio --- src/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 66ba58b..783db37 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -235,6 +235,8 @@ libspice_client_glib_2_0_la_SOURCES = \ coroutine.h \ gio-coroutine.c \ gio-coroutine.h \ + gtask-helper.c \ + gtask-helper.h \ \ channel-base.c \ channel-webdav.c \ -- cgit