qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 1/4] coroutine: introduce coroutines


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v3 1/4] coroutine: introduce coroutines
Date: Fri, 13 May 2011 12:32:10 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10

On 05/13/2011 11:26 AM, Stefan Hajnoczi wrote:
This coroutines implementation is based on the gtk-vnc implementation
written by Anthony Liguori<address@hidden>  but it has been
significantly rewritten by Kevin Wolf<address@hidden>  to use
setjmp()/longjmp() instead of the more expensive swapcontext().

Since in the future we'll have at least three implementations of coroutines (ucontext, win32 fibers, threads) can you squash in something like the attached to allow "subclassing" of coroutines using DO_UPCAST)? Resolving conflicts with 4/4 should be trivial

(Sorry for not doing my homework completely; I started describing in English what I had in mind, but it was too much of a mouthful).

Paolo

Attachment: 0001-allow-subclassing-of-coroutines.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]