Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread local storage support #46

Open
vluttine opened this issue Apr 29, 2021 · 1 comment
Open

Thread local storage support #46

vluttine opened this issue Apr 29, 2021 · 1 comment

Comments

@vluttine
Copy link

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

That would be very useful, thanks!

@PunchShadow
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants