Thread Safe Dictionary Using ReaderWriterLockSlim(devplanet.com)
submitted by
Justice(100) 3 years, 6 months ago
The dictionary uses ReaderWriterLockSlim locks. These are clean, lightweight locks that MS has provided. Most importantly, they allow upgradeable read locks. I now use simple IDisposable locking wrappers. This allows us to use the "using" syntax to ensure lock releases.
|category: C#
|Views: 347
tags:
C# another
Everyones tags:
Your Tags: