Re: [Spice-devel] [spice-gtk 2/2] Introduce gtask-helper.[ch]

2016-03-23 Thread Fabiano Fidêncio
On Wed, Mar 23, 2016 at 11:34 AM, Christophe Fergeau wrote: > On Wed, Mar 23, 2016 at 10:48:31AM +0100, Fabiano Fidêncio wrote: >> As noticed, GTask's heurestic for return a task in idle or immediately >> doesn't work when using Coroutine > > s/heurestic/heuristic/ > > Imo we need a detailed descr

Re: [Spice-devel] [spice-gtk 2/2] Introduce gtask-helper.[ch]

2016-03-23 Thread Christophe Fergeau
On Wed, Mar 23, 2016 at 10:48:31AM +0100, Fabiano Fidêncio wrote: > As noticed, GTask's heurestic for return a task in idle or immediately > doesn't work when using Coroutine s/heurestic/heuristic/ Imo we need a detailed description of what is not working well with GTask + coroutine, and one conc

[Spice-devel] [spice-gtk 2/2] Introduce gtask-helper.[ch]

2016-03-23 Thread Fabiano Fidêncio
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 e