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

◆ Handle

virtual IntPtr System.Threading.WaitHandle.Handle
getset

Definition at line 26 of file WaitHandle.cs.

27 {
28 get
29 {
30 if (_waitHandle != null)
31 {
33 }
34 return InvalidHandle;
35 }
36 set
37 {
38 if (value == InvalidHandle)
39 {
40 if (_waitHandle != null)
41 {
43 _waitHandle = null;
44 }
45 }
46 else
47 {
48 _waitHandle = new SafeWaitHandle(value, ownsHandle: true);
49 }
50 }
51 }
SafeWaitHandle SafeWaitHandle
Definition WaitHandle.cs:54
SafeWaitHandle _waitHandle
Definition WaitHandle.cs:14
static readonly IntPtr InvalidHandle
Definition WaitHandle.cs:12