Unlike most stackful coroutine libraries in C/C++ are asymmetric with very simple API (create/yield/resume), ptask is a thread safe symmetric coroutine library with pthread like synchronization APIs. It supports both 1:N and M:N scheduling. -
View it on GitHub