340 lines
13 KiB
C#
340 lines
13 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Threading
|
|
{
|
|
/// <summary>Signals to a <see cref="T:System.Threading.CancellationToken" /> that it should be canceled.</summary>
|
|
// Token: 0x0200031D RID: 797
|
|
[Token(Token = "0x200031D")]
|
|
[ComVisible(false)]
|
|
public class CancellationTokenSource : IDisposable
|
|
{
|
|
// Token: 0x06001E97 RID: 7831 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001E97")]
|
|
[Address(RVA = "0xF29260", Offset = "0xF28260", VA = "0x180F29260")]
|
|
private static void LinkedTokenCancelDelegate(object source)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets whether cancellation has been requested for this <see cref="T:System.Threading.CancellationTokenSource" />.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if cancellation has been requested for this <see cref="T:System.Threading.CancellationTokenSource" />; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x1700044C RID: 1100
|
|
// (get) Token: 0x06001E98 RID: 7832 RVA: 0x00014DC0 File Offset: 0x00012FC0
|
|
[Token(Token = "0x1700044C")]
|
|
public bool IsCancellationRequested
|
|
{
|
|
[Token(Token = "0x6001E98")]
|
|
[Address(RVA = "0xF29910", Offset = "0xF28910", VA = "0x180F29910")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700044D RID: 1101
|
|
// (get) Token: 0x06001E99 RID: 7833 RVA: 0x00014DD8 File Offset: 0x00012FD8
|
|
[Token(Token = "0x1700044D")]
|
|
internal bool IsCancellationCompleted
|
|
{
|
|
[Token(Token = "0x6001E99")]
|
|
[Address(RVA = "0xF298F0", Offset = "0xF288F0", VA = "0x180F298F0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700044E RID: 1102
|
|
// (get) Token: 0x06001E9A RID: 7834 RVA: 0x00014DF0 File Offset: 0x00012FF0
|
|
[Token(Token = "0x1700044E")]
|
|
internal bool IsDisposed
|
|
{
|
|
[Token(Token = "0x6001E9A")]
|
|
[Address(RVA = "0x51F260", Offset = "0x51E260", VA = "0x18051F260")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700044F RID: 1103
|
|
// (get) Token: 0x06001E9C RID: 7836 RVA: 0x00014E08 File Offset: 0x00013008
|
|
// (set) Token: 0x06001E9B RID: 7835 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x1700044F")]
|
|
internal int ThreadIDExecutingCallbacks
|
|
{
|
|
[Token(Token = "0x6001E9C")]
|
|
[Address(RVA = "0xF29930", Offset = "0xF28930", VA = "0x180F29930")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
[Token(Token = "0x6001E9B")]
|
|
[Address(RVA = "0xF299B0", Offset = "0xF289B0", VA = "0x180F299B0")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the <see cref="T:System.Threading.CancellationToken" /> associated with this <see cref="T:System.Threading.CancellationTokenSource" />.</summary>
|
|
/// <returns>The <see cref="T:System.Threading.CancellationToken" /> associated with this <see cref="T:System.Threading.CancellationTokenSource" />.</returns>
|
|
/// <exception cref="T:System.ObjectDisposedException">The token source has been disposed.</exception>
|
|
// Token: 0x17000450 RID: 1104
|
|
// (get) Token: 0x06001E9D RID: 7837 RVA: 0x00014E20 File Offset: 0x00013020
|
|
[Token(Token = "0x17000450")]
|
|
public CancellationToken Token
|
|
{
|
|
[Token(Token = "0x6001E9D")]
|
|
[Address(RVA = "0xF29950", Offset = "0xF28950", VA = "0x180F29950")]
|
|
get
|
|
{
|
|
return default(CancellationToken);
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000451 RID: 1105
|
|
// (get) Token: 0x06001E9E RID: 7838 RVA: 0x00014E38 File Offset: 0x00013038
|
|
[Token(Token = "0x17000451")]
|
|
internal bool CanBeCanceled
|
|
{
|
|
[Token(Token = "0x6001E9E")]
|
|
[Address(RVA = "0xF298B0", Offset = "0xF288B0", VA = "0x180F298B0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000452 RID: 1106
|
|
// (get) Token: 0x06001E9F RID: 7839 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x17000452")]
|
|
internal CancellationCallbackInfo ExecutingCallback
|
|
{
|
|
[Token(Token = "0x6001E9F")]
|
|
[Address(RVA = "0xF298D0", Offset = "0xF288D0", VA = "0x180F298D0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Threading.CancellationTokenSource" /> class.</summary>
|
|
// Token: 0x06001EA0 RID: 7840 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001EA0")]
|
|
[Address(RVA = "0xF29830", Offset = "0xF28830", VA = "0x180F29830")]
|
|
public CancellationTokenSource()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001EA1 RID: 7841 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001EA1")]
|
|
[Address(RVA = "0xF29870", Offset = "0xF28870", VA = "0x180F29870")]
|
|
private CancellationTokenSource(bool set)
|
|
{
|
|
}
|
|
|
|
/// <summary>Communicates a request for cancellation.</summary>
|
|
/// <exception cref="T:System.ObjectDisposedException">This <see cref="T:System.Threading.CancellationTokenSource" /> has been disposed.</exception>
|
|
/// <exception cref="T:System.AggregateException">An aggregate exception containing all the exceptions thrown by the registered callbacks on the associated <see cref="T:System.Threading.CancellationToken" />.</exception>
|
|
// Token: 0x06001EA2 RID: 7842 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001EA2")]
|
|
[Address(RVA = "0xF284D0", Offset = "0xF274D0", VA = "0x180F284D0")]
|
|
public void Cancel()
|
|
{
|
|
}
|
|
|
|
/// <summary>Communicates a request for cancellation, and specifies whether remaining callbacks and cancelable operations should be processed if an exception occurs.</summary>
|
|
/// <param name="throwOnFirstException">
|
|
/// <see langword="true" /> if exceptions should immediately propagate; otherwise, <see langword="false" />.</param>
|
|
/// <exception cref="T:System.ObjectDisposedException">This <see cref="T:System.Threading.CancellationTokenSource" /> has been disposed.</exception>
|
|
/// <exception cref="T:System.AggregateException">An aggregate exception containing all the exceptions thrown by the registered callbacks on the associated <see cref="T:System.Threading.CancellationToken" />.</exception>
|
|
// Token: 0x06001EA3 RID: 7843 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001EA3")]
|
|
[Address(RVA = "0xF28540", Offset = "0xF27540", VA = "0x180F28540")]
|
|
public void Cancel(bool throwOnFirstException)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001EA4 RID: 7844 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001EA4")]
|
|
[Address(RVA = "0xF29550", Offset = "0xF28550", VA = "0x180F29550")]
|
|
private static void TimerCallbackLogic(object obj)
|
|
{
|
|
}
|
|
|
|
/// <summary>Releases all resources used by the current instance of the <see cref="T:System.Threading.CancellationTokenSource" /> class.</summary>
|
|
// Token: 0x06001EA5 RID: 7845 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001EA5")]
|
|
[Address(RVA = "0xF28920", Offset = "0xF27920", VA = "0x180F28920", Slot = "4")]
|
|
public void Dispose()
|
|
{
|
|
}
|
|
|
|
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Threading.CancellationTokenSource" /> class and optionally releases the managed resources.</summary>
|
|
/// <param name="disposing">
|
|
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
|
|
// Token: 0x06001EA6 RID: 7846 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001EA6")]
|
|
[Address(RVA = "0xF28990", Offset = "0xF27990", VA = "0x180F28990", Slot = "5")]
|
|
protected virtual void Dispose(bool disposing)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001EA7 RID: 7847 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001EA7")]
|
|
[Address(RVA = "0xF29480", Offset = "0xF28480", VA = "0x180F29480")]
|
|
internal void ThrowIfDisposed()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001EA8 RID: 7848 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001EA8")]
|
|
[Address(RVA = "0xF294E0", Offset = "0xF284E0", VA = "0x180F294E0")]
|
|
private static void ThrowObjectDisposedException()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001EA9 RID: 7849 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001EA9")]
|
|
[Address(RVA = "0xF28E40", Offset = "0xF27E40", VA = "0x180F28E40")]
|
|
internal static CancellationTokenSource InternalGetStaticSource(bool set)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06001EAA RID: 7850 RVA: 0x00014E50 File Offset: 0x00013050
|
|
[Token(Token = "0x6001EAA")]
|
|
[Address(RVA = "0xF28EE0", Offset = "0xF27EE0", VA = "0x180F28EE0")]
|
|
internal CancellationTokenRegistration InternalRegister(Action<object> callback, object stateForCallback, SynchronizationContext targetSyncContext, ExecutionContext executionContext)
|
|
{
|
|
return default(CancellationTokenRegistration);
|
|
}
|
|
|
|
// Token: 0x06001EAB RID: 7851 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001EAB")]
|
|
[Address(RVA = "0xF29360", Offset = "0xF28360", VA = "0x180F29360")]
|
|
private void NotifyCancellation(bool throwOnFirstException)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001EAC RID: 7852 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001EAC")]
|
|
[Address(RVA = "0xF28A80", Offset = "0xF27A80", VA = "0x180F28A80")]
|
|
private void ExecuteCallbackHandlers(bool throwOnFirstException)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001EAD RID: 7853 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001EAD")]
|
|
[Address(RVA = "0xF285B0", Offset = "0xF275B0", VA = "0x180F285B0")]
|
|
private void CancellationCallbackCoreWork_OnSyncContext(object obj)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001EAE RID: 7854 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001EAE")]
|
|
[Address(RVA = "0xF28630", Offset = "0xF27630", VA = "0x180F28630")]
|
|
private void CancellationCallbackCoreWork(CancellationCallbackCoreWorkArguments args)
|
|
{
|
|
}
|
|
|
|
/// <summary>Creates a <see cref="T:System.Threading.CancellationTokenSource" /> that will be in the canceled state when any of the source tokens are in the canceled state.</summary>
|
|
/// <param name="token1">The first cancellation token to observe.</param>
|
|
/// <param name="token2">The second cancellation token to observe.</param>
|
|
/// <returns>A <see cref="T:System.Threading.CancellationTokenSource" /> that is linked to the source tokens.</returns>
|
|
/// <exception cref="T:System.ObjectDisposedException">A <see cref="T:System.Threading.CancellationTokenSource" /> associated with one of the source tokens has been disposed.</exception>
|
|
// Token: 0x06001EAF RID: 7855 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001EAF")]
|
|
[Address(RVA = "0xF28700", Offset = "0xF27700", VA = "0x180F28700")]
|
|
public static CancellationTokenSource CreateLinkedTokenSource(CancellationToken token1, CancellationToken token2)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06001EB0 RID: 7856 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001EB0")]
|
|
[Address(RVA = "0xF29680", Offset = "0xF28680", VA = "0x180F29680")]
|
|
internal void WaitForCallbackToComplete(CancellationCallbackInfo callbackInfo)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04001111 RID: 4369
|
|
[Token(Token = "0x4001111")]
|
|
private static readonly CancellationTokenSource _staticSource_Set;
|
|
|
|
// Token: 0x04001112 RID: 4370
|
|
[Token(Token = "0x4001112")]
|
|
private static readonly CancellationTokenSource _staticSource_NotCancelable;
|
|
|
|
// Token: 0x04001113 RID: 4371
|
|
[Token(Token = "0x4001113")]
|
|
private static readonly int s_nLists;
|
|
|
|
// Token: 0x04001114 RID: 4372
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4001114")]
|
|
private ManualResetEvent m_kernelEvent;
|
|
|
|
// Token: 0x04001115 RID: 4373
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001115")]
|
|
private SparselyPopulatedArray<CancellationCallbackInfo>[] m_registeredCallbacksLists;
|
|
|
|
// Token: 0x04001116 RID: 4374
|
|
[Token(Token = "0x4001116")]
|
|
private const int CANNOT_BE_CANCELED = 0;
|
|
|
|
// Token: 0x04001117 RID: 4375
|
|
[Token(Token = "0x4001117")]
|
|
private const int NOT_CANCELED = 1;
|
|
|
|
// Token: 0x04001118 RID: 4376
|
|
[Token(Token = "0x4001118")]
|
|
private const int NOTIFYING = 2;
|
|
|
|
// Token: 0x04001119 RID: 4377
|
|
[Token(Token = "0x4001119")]
|
|
private const int NOTIFYINGCOMPLETE = 3;
|
|
|
|
// Token: 0x0400111A RID: 4378
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400111A")]
|
|
private int m_state;
|
|
|
|
// Token: 0x0400111B RID: 4379
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x400111B")]
|
|
private int m_threadIDExecutingCallbacks;
|
|
|
|
// Token: 0x0400111C RID: 4380
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400111C")]
|
|
private bool m_disposed;
|
|
|
|
// Token: 0x0400111D RID: 4381
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400111D")]
|
|
private CancellationTokenRegistration[] m_linkingRegistrations;
|
|
|
|
// Token: 0x0400111E RID: 4382
|
|
[Token(Token = "0x400111E")]
|
|
private static readonly Action<object> s_LinkedTokenCancelDelegate;
|
|
|
|
// Token: 0x0400111F RID: 4383
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x400111F")]
|
|
private CancellationCallbackInfo m_executingCallback;
|
|
|
|
// Token: 0x04001120 RID: 4384
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4001120")]
|
|
private Timer m_timer;
|
|
|
|
// Token: 0x04001121 RID: 4385
|
|
[Token(Token = "0x4001121")]
|
|
private static readonly TimerCallback s_timerCallback;
|
|
}
|
|
}
|