]> git.proxmox.com Git - qemu.git/commit
coroutine: adding sigaltstack method (.c source)
authorAlex Barcelo <abarcelo@ac.upc.edu>
Tue, 28 Feb 2012 11:25:49 +0000 (12:25 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 12 Mar 2012 14:14:07 +0000 (15:14 +0100)
commit3194c8ceeba06c3b54621ea7afd6879bc50c2d1d
tree6c4908223b02c2fb978151cfa5f9f6fa0d138f1a
parent250196f19c6e7df12965d74a5073e10aba06c802
coroutine: adding sigaltstack method (.c source)

This file is based in both coroutine-ucontext.c and
pth_mctx.c (from the GNU Portable Threads library).

The mechanism used to change stacks is the sigaltstack
function (variant 2 of the pth library).

v2: Some corrections. Moving global variables into
thread storage (CoroutineThreadState).

Signed-off-by: Alex Barcelo <abarcelo@ac.upc.edu>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
coroutine-sigaltstack.c [new file with mode: 0644]