11 ms·
I suggest using setjmp/longjmp instead of copying registers manually.
by stevefan1999 8y ago
I suggest using setjmp/longjmp instead of copying registers manually.
- ufo 8y agoHow would you do that? longjmp let's you jump back to the parent coroutine but after that you cannot jump back to the child to continue where it left off.
- cryptonector 8y agoBy using different stacks for each coroutine. But it's still not trivial.