cxgo icon indicating copy to clipboard operation
cxgo copied to clipboard

Thread Local Storage

Open dennwc opened this issue 4 years ago • 1 comments

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.

dennwc avatar Jan 10 '21 21:01 dennwc

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

g41797 avatar Apr 21 '23 21:04 g41797