4 ms·
You can also implement a simple version of channels (go's concurrency model) on top of something like that, with just one more page of C: https://github.com/dan
by rdpmc 13y ago
You can also implement a simple version of channels (go's concurrency model) on top of something like that, with just one more page of C: https://github.com/danluu/setjmp-longjmp-ucontext-snippets/blob/master/channels.c https://github.com/danluu/setjmp-longjmp-ucontext-snippets/b...
https://github.com/danluu/setjmp-longjmp-ucontext-snippets/blob/master/channel_test.c https://github.com/danluu/setjmp-longjmp-ucontext-snippets/b...