Exemplo n.º 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));
 }
Exemplo n.º 2
0
 public DebugView(AsyncReaderWriterLock rwl)
 {
     _rwl = rwl;
 }
Exemplo n.º 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;
 }