Re:Show HN: Neco – Coroutine Library for C
by tidwall on Tuesday April 09, 2024 @05:39PM
(#39984574)
Also it is possible to start multiple Neco schedulers in different threads, there’s an example in the readme.
[ Parent
| on HN ]
Re:Show HN: Neco – Coroutine Library for C
by trebecks on Tuesday April 09, 2024 @06:03PM
(#39984790)
yeah i like this model. then you can use whatever synchronization junk you prefer to share state between the threads, if you have any.
your library looks well written and clean. thanks for sharing.
if anyone else wants to go coroutine spelunking, these were interesting to me:
https://github.com/higan-emu/libco/tree/master
https://github.com/Tencent/libco
https://github.com/hnes/libaco
https://kernel.googlesource.com/pub/scm/virt/kvm/qemu-kvm/+/...
https://tia.mat.br/posts/2012/09/29/asynchronous_i_o_in_c_wi...
https://www.cs.uml.edu/~bill/cs516/context_paper_rse-pmt.pdf