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;
30
SemaphoreSlim currentSem =
_currentSemaphore
.Value;
32
_currentSemaphore
.Value = nextSem;
48
_currentSemaphore
.Value ??= _topLevelSemaphore;
49
SemaphoreSlim currentSem =
_currentSemaphore
.Value;
52
_currentSemaphore
.Value = nextSem;
85
Fx.Assert(_nextSemaphore == _asyncLock.
_currentSemaphore
.Value, "_nextSemaphore was expected to by the current semaphore");
92
_asyncLock.
_currentSemaphore
.Value = null;
96
_asyncLock.
_currentSemaphore
.Value = _currentSemaphore;
112
Fx.Assert(_nextSemaphore == _asyncLock.
_currentSemaphore
.Value, "_nextSemaphore was expected to by the current semaphore");
115
_asyncLock.
_currentSemaphore
.Value = null;
119
_asyncLock.
_currentSemaphore
.Value = _currentSemaphore;