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

◆ Change()

bool System.Threading.TimerQueueTimer.Change ( uint dueTime,
uint period )
inlinepackage

Definition at line 131 of file TimerQueueTimer.cs.

132 {
134 {
135 if (_canceled)
136 {
137 throw new ObjectDisposedException(null, SR.ObjectDisposed_Generic);
138 }
139 _period = period;
140 if (dueTime == uint.MaxValue)
141 {
143 return true;
144 }
145 if (FrameworkEventSource.Log.IsEnabled(EventLevel.Informational, (EventKeywords)16L))
146 {
147 FrameworkEventSource.Log.ThreadTransferSendObj(this, 1, string.Empty, multiDequeues: true, (int)dueTime, (int)period);
148 }
149 return _associatedTimerQueue.UpdateTimer(this, dueTime, period);
150 }
151 }
readonly TimerQueue _associatedTimerQueue
bool UpdateTimer(TimerQueueTimer timer, uint dueTime, uint period)
void DeleteTimer(TimerQueueTimer timer)

References System.Threading.TimerQueueTimer._associatedTimerQueue, System.Threading.TimerQueueTimer._canceled, System.Threading.TimerQueueTimer._period, System.Threading.TimerQueue.DeleteTimer(), System.L, System.Diagnostics.Tracing.FrameworkEventSource.Log, System.SR.ObjectDisposed_Generic, and System.Threading.TimerQueue.UpdateTimer().

Referenced by System.Threading.TimerQueueTimer.TimerQueueTimer(), System.Threading.Timer.Change(), System.Threading.Timer.Change(), and System.Threading.Timer.Change().