Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Signal() [1/2]

bool System.Threading.CountdownEvent.Signal ( )
inline

Definition at line 73 of file CountdownEvent.cs.

74 {
76 if (_currentCount <= 0)
77 {
79 }
80 int num = Interlocked.Decrement(ref _currentCount);
81 if (num == 0)
82 {
83 _event.Set();
84 return true;
85 }
86 if (num < 0)
87 {
89 }
90 return false;
91 }
static string CountdownEvent_Decrement_BelowZero
Definition SR.cs:18
Definition SR.cs:7
readonly ManualResetEventSlim _event

References System.Threading.CountdownEvent._currentCount, System.Threading.CountdownEvent._event, System.SR.CountdownEvent_Decrement_BelowZero, System.Threading.Interlocked.Decrement(), System.Threading.ManualResetEventSlim.Set(), and System.Threading.CountdownEvent.ThrowIfDisposed().

Referenced by System.Linq.Parallel.HashRepartitionEnumerator< TInputOutput, THashKey, TIgnoreKey >.Dispose(), System.Linq.Parallel.OrderedHashRepartitionEnumerator< TInputOutput, THashKey, TOrderKey >.Dispose(), System.Linq.Parallel.HashRepartitionEnumerator< TInputOutput, THashKey, TIgnoreKey >.EnumerateAndRedistributeElements(), System.Linq.Parallel.OrderedHashRepartitionEnumerator< TInputOutput, THashKey, TOrderKey >.EnumerateAndRedistributeElements(), ReLogic.Threading.FastParallel.RangeTask.Invoke(), System.Linq.Parallel.TakeOrSkipQueryOperator< TResult >.TakeOrSkipQueryOperatorEnumerator< TKey >.MoveNext(), System.Linq.Parallel.TakeOrSkipWhileQueryOperator< TResult >.TakeOrSkipWhileQueryOperatorEnumerator< TKey >.MoveNext(), System.Linq.Parallel.DefaultIfEmptyQueryOperator< TSource >.DefaultIfEmptyQueryOperatorEnumerator< TKey >.MoveNext(), System.Linq.Parallel.FirstQueryOperator< TSource >.FirstQueryOperatorEnumerator< TKey >.MoveNext(), and System.Linq.Parallel.LastQueryOperator< TSource >.LastQueryOperatorEnumerator< TKey >.MoveNext().