3 ms·
QEMU is another one that I know of: http://blog.vmsplice.net/2014/01/coroutines-in-qemu-basics.html http://blog.vmsplice.net/2014/01/coroutines-in-qemu-basics.h
by userbinator 12y ago
QEMU is another one that I know of: http://blog.vmsplice.net/2014/01/coroutines-in-qemu-basics.html http://blog.vmsplice.net/2014/01/coroutines-in-qemu-basics.h...
Coroutines seem like the type of concept that relatively few programmers understand and use, but when they are used well, it can simplify the code flow greatly.
- pm215 12y agoSpeaking as a QEMU developer, I really don't like the coroutine use. They're a portability mess, they tend to expose bugs in dusty corners of the compiler, and they can be painful to debug around. I would much rather take a view that C is simply not a language with coroutines in it, and not try to retrofit them without explicit support from the compiler and runtime...