1 write to _occupiedNodes
System.Collections.Concurrent (1)
System\Collections\Concurrent\BlockingCollection.cs (1)
231
_occupiedNodes
= new SemaphoreSlim(collectionCount);
11 references to _occupiedNodes
System.Collections.Concurrent (11)
System\Collections\Concurrent\BlockingCollection.cs (11)
95
return (IsAddingCompleted && (
_occupiedNodes
.CurrentCount == 0));
108
return
_occupiedNodes
.CurrentCount;
209
[MemberNotNull(nameof(
_occupiedNodes
))]
485
_occupiedNodes
.Release();
663
waitForSemaphoreWasSuccessful =
_occupiedNodes
.Wait(0);
668
waitForSemaphoreWasSuccessful =
_occupiedNodes
.Wait(millisecondsTimeout, linkedTokenSource.Token);
717
_occupiedNodes
.Release();
1075
handlesList.Add(collections[i].
_occupiedNodes
.AvailableWaitHandle);
1319
if (!collections[i].IsCompleted && collections[i].
_occupiedNodes
.CurrentCount > 0 && collections[i].TryTake(out item))
1405
if (collections[i].
_occupiedNodes
.AvailableWaitHandle == handles[index])
1505
_occupiedNodes
.Dispose();