3 ms·
It seems the calls in ucontext.h for *nix ( and the corresponding equivalents in Windows ) might be an improvement over setjmp/longjmp. Emphasis "might be" - de
by ArkyBeagle 11y ago
It seems the calls in ucontext.h for *nix ( and the corresponding equivalents in Windows ) might be an improvement over setjmp/longjmp. Emphasis "might be" - details not in evidence, all that.
I might remember wrong, but I recall setjmp/longjmp having constraints on when they're useable - your "up, down sideways..."
And given that, perhaps pthreads are more civilized.