Read a protected memory simultaneously while other threads writes to it with exclusive access.
TLightweightMREWSynchronizer
allows multiple threads to read from the protected memory simultaneously, while ensuring that any thread writing to the memory has exclusive access.
This class/repo is just a study I’m doing to solve a deadlock problem I’ve got in a threaded commercial application I work on. I know TMultiReadExclusiveWriteSynchronizer
and I would like to use it, however, I was frustrated to experience its slowness when comparing it to a common TCriticalSection
.