jeffcampbellmakesgames / Entitas-Redux

An entity-component framework for Unity with code generation and visual debugging
MIT License
102 stars 13 forks source link

[FEATURE REQUEST] Add additional thread safety for static fields #20

Closed jeffcampbellmakesgames closed 3 years ago

jeffcampbellmakesgames commented 3 years ago

Is your feature request related to a problem? Please describe. There is a desire by some users to be able to use a Context on separate threads, particularly in the context of a game server. However some static fields are not decorated as being [ThreadStatic] so that the value of these fields are unique per thread. Some of these areas are described on an older PR here on the original Entitas repository.

Describe the solution you'd like Ensure all static fields are decorated as being [ThreadStatic].

jeffcampbellmakesgames commented 3 years ago

Merged to develop in 0f08a70e6f91955d5832f2d24a253f5eeae4d93f