Currently, async synchronization primitives (AsyncLock, AsyncManualResetEvent, etc) use full locks (Monitor.Enter/Exit). I think we can be a little more efficient with spin lock instead. This should especially help AsyncReaderWriterLock for multiple readers.
Currently, async synchronization primitives (
AsyncLock
,AsyncManualResetEvent
, etc) use full locks (Monitor.Enter/Exit
). I think we can be a little more efficient with spin lock instead. This should especially helpAsyncReaderWriterLock
for multiple readers.