commit | 3194c8ceeba06c3b54621ea7afd6879bc50c2d1d | [log] [tgz] |
---|---|---|
author | Alex Barcelo <abarcelo@ac.upc.edu> | Tue Feb 28 12:25:49 2012 +0100 |
committer | Kevin Wolf <kwolf@redhat.com> | Mon Mar 12 15:14:07 2012 +0100 |
tree | 6c4908223b02c2fb978151cfa5f9f6fa0d138f1a | |
parent | 250196f19c6e7df12965d74a5073e10aba06c802 [diff] |
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>