Use thread local variables instead of class variables#22
Use thread local variables instead of class variables#22
Conversation
|
@jakemack thanks, your contribution is greatly appreciated! I wonder what was specific reason to prefer |
|
That's a good point, I believe you are right. |
|
@musybite Is this a change you'd want me to make and submit or is it quick and easy enough for you to implement? |
|
Actually there is a use case for thread local variables: Celluloid runs actors in separate threads, but different calls to actors are run in different Fibers. Testcase shows that fibers are different and variables are lost: So at least for this/my usecase fiber-local variables are no-go. |
|
Sorry for long response time :) |
|
I'm curious if this will ever be merged? @musybite are you still actively maintaining this gem? |
Got this by mail, leaving it here for the new maintainer, @musybite