This series of patches implements coroutines method with sigaltstack. The flow of creation and management of the coroutines is quite similar to the coroutine-ucontext.c. The way to use sigaltstack to achieve the needed stack manipulation is done in a way quite similar to the GNU Portable Threads (file pth_mctx.c, variant 2).
It's my first patch, I'm sure that there are things that I have done wrong. Please, be kind :) Thanks for your time Alex Barcelo (3): coroutine: adding sigaltstack method (.c source) coroutine: adding control flags (enable/disable) for ucontext compilation coroutine: adding enable/disable options for sigaltstack method Makefile.objs | 4 + configure | 63 +++++++++- coroutine-sigaltstack.c | 337 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 401 insertions(+), 3 deletions(-) create mode 100644 coroutine-sigaltstack.c -- 1.7.5.4