hnes/libaco

Thread local storage support

Opened this issue · 1 comments

Any possibility to add support for thread (coroutine) local variables?

That would be very useful, thanks!

To my best knowledge, coroutines work on the same thread.
Therefore, they share the same thread-local storage.
You can use malloc for local variables to avoid race conditions.