Open dennwc opened 3 years ago
cxgo doesn't support thread local storage yet.
cxgo
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.
*TLS
context.Context
Goroutine local storage: https://github.com/jtolio/gls Fast goroutine local storage:https://github.com/cosmos72/gls
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 howcontext.Context
is passed in Go.