Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TimerHolder.cs
Go to the documentation of this file.
1
using
System.Threading.Tasks
;
2
3
namespace
System.Threading
;
4
5
internal
sealed
class
TimerHolder
6
{
7
internal
readonly
TimerQueueTimer
_timer
;
8
9
public
TimerHolder
(
TimerQueueTimer
timer)
10
{
11
_timer
= timer;
12
}
13
14
~TimerHolder
()
15
{
16
_timer
.
Close
();
17
}
18
19
public
void
Close
()
20
{
21
_timer
.
Close
();
22
GC
.
SuppressFinalize
(
this
);
23
}
24
25
public
bool
Close
(
WaitHandle
notifyObject)
26
{
27
bool
result =
_timer
.
Close
(notifyObject);
28
GC
.
SuppressFinalize
(
this
);
29
return
result;
30
}
31
32
public
ValueTask
CloseAsync
()
33
{
34
ValueTask
result =
_timer
.
CloseAsync
();
35
GC
.
SuppressFinalize
(
this
);
36
return
result;
37
}
38
}
System.GC.SuppressFinalize
static void SuppressFinalize(object obj)
Definition
GC.cs:202
System.GC
Definition
GC.cs:8
System.Threading.TimerHolder.CloseAsync
ValueTask CloseAsync()
Definition
TimerHolder.cs:32
System.Threading.TimerHolder._timer
readonly TimerQueueTimer _timer
Definition
TimerHolder.cs:7
System.Threading.TimerHolder.~TimerHolder
~TimerHolder()
Definition
TimerHolder.cs:14
System.Threading.TimerHolder.TimerHolder
TimerHolder(TimerQueueTimer timer)
Definition
TimerHolder.cs:9
System.Threading.TimerHolder.Close
void Close()
Definition
TimerHolder.cs:19
System.Threading.TimerHolder.Close
bool Close(WaitHandle notifyObject)
Definition
TimerHolder.cs:25
System.Threading.TimerHolder
Definition
TimerHolder.cs:6
System.Threading.TimerQueueTimer.Close
void Close()
Definition
TimerQueueTimer.cs:153
System.Threading.TimerQueueTimer.CloseAsync
ValueTask CloseAsync()
Definition
TimerQueueTimer.cs:191
System.Threading.TimerQueueTimer
Definition
TimerQueueTimer.cs:10
System.Threading.WaitHandle
Definition
WaitHandle.cs:9
System.Threading.Tasks
Definition
TaskToApm.cs:3
System.Threading
Definition
TaskToApm.cs:3
System.Threading.Tasks.ValueTask
Definition
ValueTask.cs:321
source
System.Private.CoreLib
System.Threading
TimerHolder.cs
Generated by
1.10.0