]> git.proxmox.com Git - qemu.git/commit - Makefile.objs
coroutine: implement coroutines using gthread
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 9 Jun 2011 17:41:06 +0000 (23:11 +0530)
committerKevin Wolf <kwolf@redhat.com>
Mon, 1 Aug 2011 10:14:09 +0000 (12:14 +0200)
commitd0e2fce5366bff40cf2bf48d2f6ff72b4d8de124
tree288ec137a15c408a417e3bf696b548a013f0965c
parent00dccaf1f848290d979a4b1e6248281ce1b32aaa
coroutine: implement coroutines using gthread

On platforms that don't support makecontext(3) use gthread based
coroutine implementation.

Darwin has makecontext(3) but getcontext(3) is stubbed out to return
ENOTSUP.  Andreas Färber <andreas.faerber@web.de> debugged this and
contributed the ./configure test which solves the issue for Darwin/ppc64
(and ppc) v10.5.

[Original patch by Aneesh, made consistent with coroutine-ucontext.c and
switched to GStaticPrivate by Stefan.  Tested on Linux and OpenBSD.]

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Makefile.objs
configure
coroutine-gthread.c [new file with mode: 0644]