Il 19/03/2013 11:38, Peter Maydell ha scritto: > On 19 March 2013 10:34, Paolo Bonzini <pbonz...@redhat.com> wrote: >> Il 19/03/2013 11:12, Peter Maydell ha scritto: >>> Threads are supported by the language runtime provided on all >>> the systems we support, which is why they are reasonably usable. >>> When you've persuaded glibc, MacOSX libc and Windows to implement >>> coroutines please come back and let me know :-) >> >> Windows supports them (it calls them fibers) and glibc does on many >> architectures (all but ARM, basically). > > If you mean ucontext, I'm not sure I'd call that coroutine > support at the library level (and we did implement it on > ARM glibc).
Yes, I mean ucontext, more precisely makecontext/setcontext. Portably creating a new stack is really the crux of coroutine support. Paolo