2 ms·
I recently asked how to use C++ thread pools with coroutines. there is code as an answer on my stack overflow question. https://stackoverflow.com/questions/745
by samsquire 4y ago
I recently asked how to use C++ thread pools with coroutines. there is code as an answer on my stack overflow question.
https://stackoverflow.com/questions/74520133/how-can-i-pass-things-to-a-c20-coroutine-co-await-await-suspend-operator-funct https://stackoverflow.com/questions/74520133/how-can-i-pass-...
I recently ported the coroutine code from
https://blog.dziban.net/coroutines/ https://blog.dziban.net/coroutines/
To GNU Assembler.
https://GitHub.com/samsquire/assembly https://GitHub.com/samsquire/assembly see coroutines.S
I think the best combination is threads + coroutines with a IO event loop. This gives throughout for CPU tasks and IO scalability.