1 write to _currentSemaphore
System.ServiceModel.Primitives (1)
Internals\System\Runtime\AsyncLock.cs (1)
21_currentSemaphore = new AsyncLocal<SemaphoreSlim>();
12 references to _currentSemaphore
System.ServiceModel.Primitives (12)
Internals\System\Runtime\AsyncLock.cs (12)
29_currentSemaphore.Value ??= _topLevelSemaphore; 30SemaphoreSlim currentSem = _currentSemaphore.Value; 32_currentSemaphore.Value = nextSem; 48_currentSemaphore.Value ??= _topLevelSemaphore; 49SemaphoreSlim currentSem = _currentSemaphore.Value; 52_currentSemaphore.Value = nextSem; 85Fx.Assert(_nextSemaphore == _asyncLock._currentSemaphore.Value, "_nextSemaphore was expected to by the current semaphore"); 92_asyncLock._currentSemaphore.Value = null; 96_asyncLock._currentSemaphore.Value = _currentSemaphore; 112Fx.Assert(_nextSemaphore == _asyncLock._currentSemaphore.Value, "_nextSemaphore was expected to by the current semaphore"); 115_asyncLock._currentSemaphore.Value = null; 119_asyncLock._currentSemaphore.Value = _currentSemaphore;