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

◆ Dispose() [2/2]

virtual void System.Threading.ManualResetEventSlim.Dispose ( bool disposing)
inlineprotectedvirtualinherited

Definition at line 293 of file ManualResetEventSlim.cs.

294 {
295 if (((uint)m_combinedState & 0x40000000u) != 0)
296 {
297 return;
298 }
299 m_combinedState |= 1073741824;
300 if (!disposing)
301 {
302 return;
303 }
304 ManualResetEvent eventObj = m_eventObj;
305 if (eventObj == null)
306 {
307 return;
308 }
309 lock (eventObj)
310 {
311 eventObj.Dispose();
312 m_eventObj = null;
313 }
314 }
virtual void Dispose(bool explicitDisposing)

References System.Threading.WaitHandle.Dispose(), System.Threading.ManualResetEventSlim.m_combinedState, and System.Threading.ManualResetEventSlim.m_eventObj.