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

◆ RemoveWaitThread()

void System.Threading.PortableThreadPool.RemoveWaitThread ( WaitThread thread)
inlineprivate

Definition at line 1826 of file PortableThreadPool.cs.

1827 {
1828 WaitThreadNode waitThreadNode = _waitThreadsHead;
1829 if (waitThreadNode.Thread == thread)
1830 {
1831 _waitThreadsHead = waitThreadNode.Next;
1832 return;
1833 }
1834 WaitThreadNode waitThreadNode2;
1835 do
1836 {
1837 waitThreadNode2 = waitThreadNode;
1838 waitThreadNode = waitThreadNode.Next;
1839 }
1840 while (waitThreadNode != null && waitThreadNode.Thread != thread);
1841 if (waitThreadNode != null)
1842 {
1843 waitThreadNode2.Next = waitThreadNode.Next;
1844 }
1845 }

References System.Threading.PortableThreadPool._waitThreadsHead, System.Threading.PortableThreadPool.WaitThreadNode.Next, and System.Threading.PortableThreadPool.WaitThreadNode.Thread.

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