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

Public Member Functions

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

override void Dispose (bool disposing)
 

Package Functions

 LinkedNCancellationTokenSource (CancellationToken[] tokens)
 
CancellationTokenRegistration Register (Delegate callback, object stateForCallback, SynchronizationContext syncContext, ExecutionContext executionContext)
 

Static Package Attributes

static readonly Action< object > s_linkedTokenCancelDelegate
 
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

CancellationTokenRegistration[] _linkingRegistrations
 
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 51 of file CancellationTokenSource.cs.


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