using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using Cpp2IlInjected; namespace System.Threading { /// Provides a mechanism for executing a method on a thread pool thread at specified intervals. This class cannot be inherited. // Token: 0x02000369 RID: 873 [Token(Token = "0x2000369")] [ComVisible(true)] public sealed class Timer : MarshalByRefObject, IDisposable { /// Initializes a new instance of the class, using a 32-bit signed integer to specify the time interval. /// A delegate representing a method to be executed. /// An object containing information to be used by the callback method, or . /// The amount of time to delay before is invoked, in milliseconds. Specify to prevent the timer from starting. Specify zero (0) to start the timer immediately. /// The time interval between invocations of , in milliseconds. Specify to disable periodic signaling. /// The or parameter is negative and is not equal to . /// The parameter is . // Token: 0x0600207E RID: 8318 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600207E")] [Address(RVA = "0xB560F0", Offset = "0xB550F0", VA = "0x180B560F0")] public Timer(TimerCallback callback, object state, int dueTime, int period) { } /// Initializes a new instance of the class, using values to measure time intervals. /// A delegate representing a method to be executed. /// An object containing information to be used by the callback method, or . /// The amount of time to delay before the parameter invokes its methods. Specify negative one (-1) milliseconds to prevent the timer from starting. Specify zero (0) to start the timer immediately. /// The time interval between invocations of the methods referenced by . Specify negative one (-1) milliseconds to disable periodic signaling. /// The number of milliseconds in the value of or is negative and not equal to , or is greater than . /// The parameter is . // Token: 0x0600207F RID: 8319 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600207F")] [Address(RVA = "0xB56150", Offset = "0xB55150", VA = "0x180B56150")] public Timer(TimerCallback callback, object state, TimeSpan dueTime, TimeSpan period) { } // Token: 0x06002080 RID: 8320 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002080")] [Address(RVA = "0xB55F90", Offset = "0xB54F90", VA = "0x180B55F90")] private void Init(TimerCallback callback, object state, long dueTime, long period) { } /// Changes the start time and the interval between method invocations for a timer, using values to measure time intervals. /// A representing the amount of time to delay before invoking the callback method specified when the was constructed. Specify negative one (-1) milliseconds to prevent the timer from restarting. Specify zero (0) to restart the timer immediately. /// The time interval between invocations of the callback method specified when the was constructed. Specify negative one (-1) milliseconds to disable periodic signaling. /// /// if the timer was successfully updated; otherwise, . /// The has already been disposed. /// The or parameter, in milliseconds, is less than -1. /// The or parameter, in milliseconds, is greater than 4294967294. // Token: 0x06002081 RID: 8321 RVA: 0x00015AF8 File Offset: 0x00013CF8 [Token(Token = "0x6002081")] [Address(RVA = "0xB55E90", Offset = "0xB54E90", VA = "0x180B55E90")] public bool Change(TimeSpan dueTime, TimeSpan period) { return default(bool); } /// Releases all resources used by the current instance of . // Token: 0x06002082 RID: 8322 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002082")] [Address(RVA = "0xB55EF0", Offset = "0xB54EF0", VA = "0x180B55EF0", Slot = "6")] public void Dispose() { } // Token: 0x06002083 RID: 8323 RVA: 0x00015B10 File Offset: 0x00013D10 [Token(Token = "0x6002083")] [Address(RVA = "0xB55C40", Offset = "0xB54C40", VA = "0x180B55C40")] private bool Change(long dueTime, long period, bool first) { return default(bool); } // Token: 0x06002084 RID: 8324 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002084")] [Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0")] internal void KeepRootedWhileScheduled() { } // Token: 0x06002085 RID: 8325 RVA: 0x00015B28 File Offset: 0x00013D28 [Token(Token = "0x6002085")] [Address(RVA = "0xB55F80", Offset = "0xB54F80", VA = "0x180B55F80")] private static long GetTimeMonotonic() { return 0L; } // Token: 0x0400121A RID: 4634 [Token(Token = "0x400121A")] private static readonly Timer.Scheduler scheduler; // Token: 0x0400121B RID: 4635 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x400121B")] private TimerCallback callback; // Token: 0x0400121C RID: 4636 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x400121C")] private object state; // Token: 0x0400121D RID: 4637 [global::Cpp2IlInjected.FieldOffset(Offset = "0x28")] [Token(Token = "0x400121D")] private long due_time_ms; // Token: 0x0400121E RID: 4638 [global::Cpp2IlInjected.FieldOffset(Offset = "0x30")] [Token(Token = "0x400121E")] private long period_ms; // Token: 0x0400121F RID: 4639 [global::Cpp2IlInjected.FieldOffset(Offset = "0x38")] [Token(Token = "0x400121F")] private long next_run; // Token: 0x04001220 RID: 4640 [global::Cpp2IlInjected.FieldOffset(Offset = "0x40")] [Token(Token = "0x4001220")] private bool disposed; // Token: 0x04001221 RID: 4641 [Token(Token = "0x4001221")] private const long MaxValue = 4294967294L; // Token: 0x0200036A RID: 874 [Token(Token = "0x200036A")] private sealed class TimerComparer : IComparer { // Token: 0x06002087 RID: 8327 RVA: 0x00015B40 File Offset: 0x00013D40 [Token(Token = "0x6002087")] [Address(RVA = "0xF7B880", Offset = "0xF7A880", VA = "0x180F7B880", Slot = "4")] public int Compare(object x, object y) { return 0; } // Token: 0x06002088 RID: 8328 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002088")] [Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")] public TimerComparer() { } } // Token: 0x0200036B RID: 875 [Token(Token = "0x200036B")] private sealed class Scheduler { // Token: 0x1700048A RID: 1162 // (get) Token: 0x0600208A RID: 8330 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x1700048A")] public static Timer.Scheduler Instance { [Token(Token = "0x600208A")] [Address(RVA = "0xB43B40", Offset = "0xB42B40", VA = "0x180B43B40")] get { return null; } } // Token: 0x0600208B RID: 8331 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600208B")] [Address(RVA = "0xB43990", Offset = "0xB42990", VA = "0x180B43990")] private Scheduler() { } // Token: 0x0600208C RID: 8332 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600208C")] [Address(RVA = "0xB431C0", Offset = "0xB421C0", VA = "0x180B431C0")] public void Remove(Timer timer) { } // Token: 0x0600208D RID: 8333 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600208D")] [Address(RVA = "0xB42E30", Offset = "0xB41E30", VA = "0x180B42E30")] public void Change(Timer timer, long new_next_run) { } // Token: 0x0600208E RID: 8334 RVA: 0x00015B58 File Offset: 0x00013D58 [Token(Token = "0x600208E")] [Address(RVA = "0xB42FF0", Offset = "0xB41FF0", VA = "0x180B42FF0")] private int FindByDueTime(long nr) { return 0; } // Token: 0x0600208F RID: 8335 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600208F")] [Address(RVA = "0xB42CE0", Offset = "0xB41CE0", VA = "0x180B42CE0")] private void Add(Timer timer) { } // Token: 0x06002090 RID: 8336 RVA: 0x00015B70 File Offset: 0x00013D70 [Token(Token = "0x6002090")] [Address(RVA = "0xB43160", Offset = "0xB42160", VA = "0x180B43160")] private int InternalRemove(Timer timer) { return 0; } // Token: 0x06002091 RID: 8337 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002091")] [Address(RVA = "0xB438C0", Offset = "0xB428C0", VA = "0x180B438C0")] private static void TimerCB(object o) { } // Token: 0x06002092 RID: 8338 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002092")] [Address(RVA = "0xB43280", Offset = "0xB42280", VA = "0x180B43280")] private void SchedulerThread() { } // Token: 0x06002093 RID: 8339 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002093")] [Address(RVA = "0xB43840", Offset = "0xB42840", VA = "0x180B43840")] private void ShrinkIfNeeded(List list, int initial) { } // Token: 0x04001222 RID: 4642 [Token(Token = "0x4001222")] private static Timer.Scheduler instance; // Token: 0x04001223 RID: 4643 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4001223")] private SortedList list; // Token: 0x04001224 RID: 4644 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4001224")] private ManualResetEvent changed; } } }