3 ms·
Or you can use something like protothreads or async.h [1] if you're stuck with C/C++ and need something lightweight. [1] https://news.ycombinator.com/item?id=2
by naasking 7y ago
Or you can use something like protothreads or async.h [1] if you're stuck with C/C++ and need something lightweight.
[1] https://news.ycombinator.com/item?id=21033496 https://news.ycombinator.com/item?id=21033496
- vanderZwan 7y agoCéu compiles to C actually, and I believe Francisco Sant’Anna (the author of the language) makes a direct comparison to protothreads and nesC in one of his papers (probably the PhD thesis). I had not seen async.h before though, interesting! [1] http://ceu-lang.org/publications.html http://ceu-lang.org/publications.html