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

◆ UnfreezeBag()

void System.Collections.Concurrent.ConcurrentBag< T >.UnfreezeBag ( bool lockTaken)
inlineprivate

Definition at line 697 of file ConcurrentBag.cs.

698 {
699 if (!lockTaken)
700 {
701 return;
702 }
703 for (WorkStealingQueue workStealingQueue = _workStealingQueues; workStealingQueue != null; workStealingQueue = workStealingQueue._nextQueue)
704 {
705 if (workStealingQueue._frozen)
706 {
707 workStealingQueue._frozen = false;
708 Monitor.Exit(workStealingQueue);
709 }
710 }
712 }
volatile WorkStealingQueue _workStealingQueues
static void Exit(object obj)

References System.Collections.Concurrent.ConcurrentBag< T >._workStealingQueues, System.Threading.Monitor.Exit(), and System.Collections.Concurrent.ConcurrentBag< T >.GlobalQueuesLock.

Referenced by System.Collections.Concurrent.ConcurrentBag< T >.Clear(), System.Collections.Concurrent.ConcurrentBag< T >.CopyTo(), and System.Collections.Concurrent.ConcurrentBag< T >.ToArray().