Re: [Qemu-devel] [PATCH v5 2/5] coroutine: introduce coroutines

2011-06-25 Thread Andreas Färber
Am 12.06.2011 um 22:46 schrieb Stefan Hajnoczi: From: Kevin Wolf Asynchronous code is becoming very complex. At the same time synchronous code is growing because it is convenient to write. Sometimes duplicate code paths are even added, one synchronous and the other asynchronous. This patch i

Re: [Qemu-devel] [PATCH v5 2/5] coroutine: introduce coroutines

2011-06-25 Thread Andreas Färber
Am 12.06.2011 um 22:46 schrieb Stefan Hajnoczi: From: Kevin Wolf Asynchronous code is becoming very complex. At the same time synchronous code is growing because it is convenient to write. Sometimes duplicate code paths are even added, one synchronous and the other asynchronous. This patch i

[Qemu-devel] [PATCH v5 2/5] coroutine: introduce coroutines

2011-06-12 Thread Stefan Hajnoczi
From: Kevin Wolf Asynchronous code is becoming very complex. At the same time synchronous code is growing because it is convenient to write. Sometimes duplicate code paths are even added, one synchronous and the other asynchronous. This patch introduces coroutines which allow code that looks sy