Re: [Qemu-devel] [PATCH] coroutine: Implement coroutines using gthread

2011-06-12 Thread Stefan Hajnoczi
On Sat, Jun 11, 2011 at 1:27 PM, Bastien ROUCARIES wrote: > Le jeudi 9 juin 2011 19:41:06, Aneesh Kumar K.V a écrit : >> On platforms that doesn't support makecontext use gthread >> based coroutine implementation. > > Why not using one of the existing lib of coroutine or improving it ? > > Could y

Re: [Qemu-devel] [PATCH] coroutine: Implement coroutines using gthread

2011-06-11 Thread Bastien ROUCARIES
Le jeudi 9 juin 2011 19:41:06, Aneesh Kumar K.V a écrit : > On platforms that doesn't support makecontext use gthread > based coroutine implementation. Why not using one of the existing lib of coroutine or improving it ? Could you give some hints ? Why not use http://cvs.schmorp.de/libcoro/coro.

Re: [Qemu-devel] [PATCH] coroutine: Implement coroutines using gthread

2011-06-10 Thread Stefan Hajnoczi
On Fri, Jun 10, 2011 at 12:09 PM, Aneesh Kumar K.V wrote: > On Fri, 10 Jun 2011 11:24:20 +0100, Stefan Hajnoczi > wrote: >> On Thu, Jun 9, 2011 at 6:41 PM, Aneesh Kumar K.V >> wrote: >> > On platforms that doesn't support makecontext use gthread >> > based coroutine implementation. >> > >> > Si

Re: [Qemu-devel] [PATCH] coroutine: Implement coroutines using gthread

2011-06-10 Thread Aneesh Kumar K.V
On Fri, 10 Jun 2011 11:24:20 +0100, Stefan Hajnoczi wrote: > On Thu, Jun 9, 2011 at 6:41 PM, Aneesh Kumar K.V > wrote: > > On platforms that doesn't support makecontext use gthread > > based coroutine implementation. > > > > Signed-off-by: Aneesh Kumar K.V > > --- > > > > NOTE: Tested on linux w

Re: [Qemu-devel] [PATCH] coroutine: Implement coroutines using gthread

2011-06-10 Thread Stefan Hajnoczi
On Thu, Jun 9, 2011 at 6:41 PM, Aneesh Kumar K.V wrote: > On platforms that doesn't support makecontext use gthread > based coroutine implementation. > > Signed-off-by: Aneesh Kumar K.V > --- > > NOTE: Tested on linux with force compliation of coroutine-gthread.c > >  Makefile.objs       |    5 +

[Qemu-devel] [PATCH] coroutine: Implement coroutines using gthread

2011-06-09 Thread Aneesh Kumar K.V
On platforms that doesn't support makecontext use gthread based coroutine implementation. Signed-off-by: Aneesh Kumar K.V --- NOTE: Tested on linux with force compliation of coroutine-gthread.c Makefile.objs |5 ++ configure | 18 + coroutine-gthread.c | 172