In a multi-threaded application. I have a bunch of functions that go through a collection to read information. I also have a bunch of functions that modify the same collection.
I am looking for a way to isolate everything I read and write together. I do not want the recording to be done while reading. I was thinking about using SyncLock in a collection object, but this blocks multiple reads trying to work in parallel.
source
share