|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [RFC][PATCH 01/12] coroutine: Add gtk-vnc coroutines library |
Date: | Wed, 26 Jan 2011 10:29:31 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Lightning/1.0b1 Thunderbird/3.0.10 |
On 01/26/2011 10:22 AM, Avi Kivity wrote:
On 01/26/2011 06:19 PM, Anthony Liguori wrote:What do you mean by threaded version?Stefan didn't post it, but the original code also has a GThread based implementation when ucontext isn't available (like on Windows). It uses a mutex to control the execution of the coroutines.Ah ok. These can all be hidden under a single API.
It is, that's the point of the coroutine abstraction :-)
btw, I think Windows does provide support for user-level threads under the name Fibers.
Yes, I never got around to implementing it though. There was something odd about them that I thought would be difficult to use but I can't remember the details.
Regards, Anthony Liguori
[Prev in Thread] | Current Thread | [Next in Thread] |