示例#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;
 }