Closed SOF3 closed 3 years ago
Objects are required to be Send + Sync because the container is expected to be used from multiple threads. To have mutability, it is necessary to wrap everything with Mutex. Having a single-threaded variant would simplify this process.
Send + Sync
Mutex
LocalContainer allows values to be Send only. Does that suffice?
LocalContainer
Send
Objects are required to be
Send + Sync
because the container is expected to be used from multiple threads. To have mutability, it is necessary to wrap everything withMutex
. Having a single-threaded variant would simplify this process.