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

◆ Count

long System.Threading.ThreadInt64PersistentCounter.Count
get

Definition at line 92 of file ThreadInt64PersistentCounter.cs.

93 {
94 get
95 {
96 s_lock.Acquire();
97 long num = _overflowCount;
98 try
99 {
100 foreach (ThreadLocalNode node in _nodes)
101 {
102 num += node.Count;
103 }
104 }
105 catch (OutOfMemoryException)
106 {
107 }
108 finally
109 {
110 s_lock.Release();
111 }
112 return num;
113 }
114 }

Referenced by System.Threading.PortableThreadPool.AdjustMaxWorkersActive().