Re: [Spice-devel] [PATCH] gtask-helper: include functions to check coroutine context

2016-05-17 Thread Christophe Fergeau
On Sat, May 14, 2016 at 05:03:37PM +0200, Victor Toso wrote: > If we are in coroutine context, fallback to return in idle; Otherwise, > let GTask decide if callback should be called or not. > --- > src/gtask-helper.h | 45 + > 1 file changed, 45 insertio

Re: [Spice-devel] [PATCH] gtask-helper: include functions to check coroutine context

2016-05-14 Thread Fabiano Fidêncio
Toso, On Sat, May 14, 2016 at 10:05 PM, Victor Toso wrote: > Hi, > > On Sat, May 14, 2016 at 06:34:41PM +0200, Fabiano Fidêncio wrote: >> On Sat, May 14, 2016 at 5:03 PM, Victor Toso wrote: >> > If we are in coroutine context, fallback to return in idle; Otherwise, >> > let GTask decide if callb

Re: [Spice-devel] [PATCH] gtask-helper: include functions to check coroutine context

2016-05-14 Thread Victor Toso
Hi, On Sat, May 14, 2016 at 06:34:41PM +0200, Fabiano Fidêncio wrote: > On Sat, May 14, 2016 at 5:03 PM, Victor Toso wrote: > > If we are in coroutine context, fallback to return in idle; Otherwise, > > let GTask decide if callback should be called or not. > > --- > > src/gtask-helper.h | 45 +++

Re: [Spice-devel] [PATCH] gtask-helper: include functions to check coroutine context

2016-05-14 Thread Fabiano Fidêncio
On Sat, May 14, 2016 at 5:03 PM, Victor Toso wrote: > If we are in coroutine context, fallback to return in idle; Otherwise, > let GTask decide if callback should be called or not. > --- > src/gtask-helper.h | 45 + > 1 file changed, 45 insertions(+) >

[Spice-devel] [PATCH] gtask-helper: include functions to check coroutine context

2016-05-14 Thread Victor Toso
If we are in coroutine context, fallback to return in idle; Otherwise, let GTask decide if callback should be called or not. --- src/gtask-helper.h | 45 + 1 file changed, 45 insertions(+) diff --git a/src/gtask-helper.h b/src/gtask-helper.h index 81c04