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

◆ Id

int System.Threading.Tasks.TaskScheduler.Id
getinherited

Definition at line 88 of file TaskScheduler.cs.

89 {
90 get
91 {
92 if (m_taskSchedulerId == 0)
93 {
94 int num;
95 do
96 {
97 num = Interlocked.Increment(ref s_taskSchedulerIdCounter);
98 }
99 while (num == 0);
100 Interlocked.CompareExchange(ref m_taskSchedulerId, num, 0);
101 }
102 return m_taskSchedulerId;
103 }
104 }

Referenced by System.Threading.Tasks.Task< TResult >.InternalWaitCore().