예제 #1
0
 /// <summary>
 /// Creates the key for a lock.
 /// </summary>
 /// <param name="asyncReaderWriterLock">The lock to release. May not be <c>null</c>.</param>
 internal UpgradeableReaderKey(AsyncReaderWriterLock asyncReaderWriterLock)
 {
     _asyncReaderWriterLock = asyncReaderWriterLock;
     CachedUpgradeKeyTask   = Task.FromResult <IDisposable>(new UpgradeKey(this));
 }
예제 #2
0
 public DebugView(AsyncReaderWriterLock rwl)
 {
     _rwl = rwl;
 }
예제 #3
0
 /// <summary>
 /// Creates the key for a lock.
 /// </summary>
 /// <param name="asyncReaderWriterLock">The lock to release. May not be <c>null</c>.</param>
 public WriterKey(AsyncReaderWriterLock asyncReaderWriterLock)
 {
     _asyncReaderWriterLock = asyncReaderWriterLock;
 }