[Spice-devel] [spice-gtk 3/5] session: don't track open_host_idle source id

Christophe Fergeau cfergeau at redhat.com
Wed Feb 5 00:57:13 PST 2014


On Wed, Feb 05, 2014 at 09:49:36AM +0100, Marc-André Lureau wrote:
> On Wed, Feb 5, 2014 at 9:36 AM, Christophe Fergeau <cfergeau at redhat.com> wrote:
> > On Tue, Feb 04, 2014 at 03:22:47PM +0100, Marc-André Lureau wrote:
> >> On Tue, Feb 4, 2014 at 2:48 PM, Christophe Fergeau <cfergeau at redhat.com> wrote:
> >> > On Wed, Jan 22, 2014 at 07:26:49PM +0100, Marc-André Lureau wrote:
> >> >> From: Marc-André Lureau <marcandre.lureau at redhat.com>
> >> >>
> >> >> In all cases, when the coroutine is resumed, the idle source has been
> >> >> removed.
> >> >
> >> > Are you sure about this? I see some coroutine_yieldto() in error cases in
> >> > open_host_idle_cb (but I always get the coroutine code wrong).
> >> >
> >>
> >> but the source is removed there anyway
> >
> > As I understand it, even if the coroutine is resumed through a
> > coroutine_yieldto() during the idle execution, it will eventually be
> > removed through a return G_SOURCE_REMOVE, is this what you mean ?
> 
> yes

Ok, ACK if you improve the commit log, as what I understood initially was
that the idle was guaranteed to be finished/removed before we return to the
coroutine context.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20140205/81e7180c/attachment.pgp>


More information about the Spice-devel mailing list