Re: [Spice-devel] [PATCH spice-gtk 4/4] coroutine: make gthread coroutine pass tests

2013-11-19 Thread Christophe Fergeau
On Tue, Nov 19, 2013 at 04:14:25PM +0100, Marc-André Lureau wrote: > The coroutine entry() return value must be passed via the caller->data, > since coroutine_swap() returns from->data. (this is needed because > coroutine_swap() argument is used both to return from entry() or to send > data to a ru

[Spice-devel] [PATCH spice-gtk 4/4] coroutine: make gthread coroutine pass tests

2013-11-19 Thread Marc-André Lureau
The coroutine entry() return value must be passed via the caller->data, since coroutine_swap() returns from->data. (this is needed because coroutine_swap() argument is used both to return from entry() or to send data to a running coroutine) When leaving a coroutine, clear its caller. Return corre