I'm creating a C# plugin and I'm storing some data in a Dictionary that is read/updated pretty often. My initial thought was that I needed to use locking to prevent multiple threads from reading/writing, and then I realized that I wasn't sure if hooks are invoked by different threads.
So, my question is, is thread safety a concern? Or is everything operating within the same thread?
Is thread safety a concern?
Discussion in 'Rust Development' started by bgze23, Feb 16, 2015.
-
All i can say is that you are not allowed to use: lock
-
Also don't create additional Threads with timers or BackgroundWorkers you may crash the server.
-