gotranspile / cxgo

Tool for transpiling C to Go.
https://gotranspile.dev
MIT License
337 stars 23 forks source link

Thread Local Storage #12

Open dennwc opened 3 years ago

dennwc commented 3 years ago

cxgo doesn't support thread local storage yet.

We can emulate it by passing a *TLS object to all the functions that use it, and to all their callers, similar to how context.Context is passed in Go.

g41797 commented 1 year ago

Goroutine local storage: https://github.com/jtolio/gls Fast goroutine local storage:https://github.com/cosmos72/gls