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

◆ AvailableWaitHandle

WaitHandle System.Threading.SemaphoreSlim.AvailableWaitHandle
get

Definition at line 74 of file SemaphoreSlim.cs.

75 {
76 get
77 {
79 if (m_waitHandle != null)
80 {
81 return m_waitHandle;
82 }
84 {
85 if (m_waitHandle == null)
86 {
87 m_waitHandle = new ManualResetEvent(m_currentCount != 0);
88 }
89 }
90 return m_waitHandle;
91 }
92 }
readonly StrongBox< bool > m_lockObjAndDisposed
volatile ManualResetEvent m_waitHandle

Referenced by System.Collections.Concurrent.BlockingCollection< T >.GetHandles(), and System.Collections.Concurrent.BlockingCollection< T >.TryTakeFromAnyCoreSlow().