Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Threading.CancellationTokenSource Class Reference

Classes

class  CallbackNode
 
class  Linked1CancellationTokenSource
 
class  Linked2CancellationTokenSource
 
class  LinkedNCancellationTokenSource
 
class  Registrations
 

Public Member Functions

 CancellationTokenSource ()
 
 CancellationTokenSource (TimeSpan delay)
 
 CancellationTokenSource (int millisecondsDelay)
 
void Cancel ()
 
void Cancel (bool throwOnFirstException)
 
void CancelAfter (TimeSpan delay)
 
void CancelAfter (int millisecondsDelay)
 
bool TryReset ()
 
void Dispose ()
 

Static Public Member Functions

static CancellationTokenSource CreateLinkedTokenSource (CancellationToken token1, CancellationToken token2)
 
static CancellationTokenSource CreateLinkedTokenSource (CancellationToken token)
 
static CancellationTokenSource CreateLinkedTokenSource (params CancellationToken[] tokens)
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Package Functions

CancellationTokenRegistration Register (Delegate callback, object stateForCallback, SynchronizationContext syncContext, ExecutionContext executionContext)
 

Static Package Attributes

static readonly CancellationTokenSource s_canceledSource
 
static readonly CancellationTokenSource s_neverCanceledSource = new CancellationTokenSource()
 

Properties

bool IsCancellationRequested [get]
 
bool IsCancellationCompleted [get]
 
CancellationToken Token [get]
 
WaitHandle WaitHandle [get]
 

Private Member Functions

void InitializeWithTimer (uint millisecondsDelay)
 
void CancelAfter (uint millisecondsDelay)
 
void ThrowIfDisposed ()
 
void NotifyCancellation (bool throwOnFirstException)
 
void ExecuteCallbackHandlers (bool throwOnFirstException)
 

Static Private Member Functions

static void TimerCallback (object state)
 
static void Invoke (Delegate d, object state, CancellationTokenSource source)
 

Private Attributes

volatile int _state
 
bool _disposed
 
volatile TimerQueueTimer _timer
 
volatile ManualResetEvent _kernelEvent
 
Registrations _registrations
 

Static Private Attributes

static readonly TimerCallback s_timerCallback = TimerCallback
 

Detailed Description

Definition at line 7 of file CancellationTokenSource.cs.


The documentation for this class was generated from the following file: