jjjordan
Re:Cooperative Threading
on Wednesday November 13, 2019 @12:14AM (#21521329)
There's an implementation using setjmp/longjmp in his library here [1]. It uses sigaltstack to assign a newly allocated stack to the coroutine. Marc Lehman's libcoro [2] library does the same.