|
|
|
|
|
by gpderetta
3815 days ago
|
|
*context are unfortunately quite slow as they require a system call to update the signal mask. The sigaltstack trick popularized by Pth is probably still more portable and faster. BTW makecontext and friend were made obsolete by posix for a technicality: makecontext signature isn't expressible any longer in a strictly conforming C99 applications, although in practice it will work with any C compiler. Ironically this happened around the same time that coroutines started becoming popular again. |
|