a
This commit is contained in:
@@ -0,0 +1,267 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Threading
|
||||
{
|
||||
/// <summary>Provides a mechanism for executing a method on a thread pool thread at specified intervals. This class cannot be inherited.</summary>
|
||||
// Token: 0x0200034D RID: 845
|
||||
[Token(Token = "0x200034D")]
|
||||
[ComVisible(true)]
|
||||
public sealed class Timer : MarshalByRefObject, IDisposable
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see langword="Timer" /> class, using a 32-bit signed integer to specify the time interval.</summary>
|
||||
/// <param name="callback">A <see cref="T:System.Threading.TimerCallback" /> delegate representing a method to be executed.</param>
|
||||
/// <param name="state">An object containing information to be used by the callback method, or <see langword="null" />.</param>
|
||||
/// <param name="dueTime">The amount of time to delay before <paramref name="callback" /> is invoked, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite" /> to prevent the timer from starting. Specify zero (0) to start the timer immediately.</param>
|
||||
/// <param name="period">The time interval between invocations of <paramref name="callback" />, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite" /> to disable periodic signaling.</param>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="dueTime" /> or <paramref name="period" /> parameter is negative and is not equal to <see cref="F:System.Threading.Timeout.Infinite" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="callback" /> parameter is <see langword="null" />.</exception>
|
||||
// Token: 0x06001E71 RID: 7793 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001E71")]
|
||||
[Address(RVA = "0x1DB6C20", Offset = "0x1DB5A20", VA = "0x181DB6C20")]
|
||||
public Timer(TimerCallback callback, object state, int dueTime, int period)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see langword="Timer" /> class, using <see cref="T:System.TimeSpan" /> values to measure time intervals.</summary>
|
||||
/// <param name="callback">A delegate representing a method to be executed.</param>
|
||||
/// <param name="state">An object containing information to be used by the callback method, or <see langword="null" />.</param>
|
||||
/// <param name="dueTime">The amount of time to delay before the <paramref name="callback" /> parameter invokes its methods. Specify negative one (-1) milliseconds to prevent the timer from starting. Specify zero (0) to start the timer immediately.</param>
|
||||
/// <param name="period">The time interval between invocations of the methods referenced by <paramref name="callback" />. Specify negative one (-1) milliseconds to disable periodic signaling.</param>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">The number of milliseconds in the value of <paramref name="dueTime" /> or <paramref name="period" /> is negative and not equal to <see cref="F:System.Threading.Timeout.Infinite" />, or is greater than <see cref="F:System.Int32.MaxValue" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="callback" /> parameter is <see langword="null" />.</exception>
|
||||
// Token: 0x06001E72 RID: 7794 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001E72")]
|
||||
[Address(RVA = "0x1DB6C80", Offset = "0x1DB5A80", VA = "0x181DB6C80")]
|
||||
public Timer(TimerCallback callback, object state, TimeSpan dueTime, TimeSpan period)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001E73 RID: 7795 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001E73")]
|
||||
[Address(RVA = "0x1DB6AC0", Offset = "0x1DB58C0", VA = "0x181DB6AC0")]
|
||||
private void Init(TimerCallback callback, object state, long dueTime, long period)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Changes the start time and the interval between method invocations for a timer, using 32-bit signed integers to measure time intervals.</summary>
|
||||
/// <param name="dueTime">The amount of time to delay before the invoking the callback method specified when the <see cref="T:System.Threading.Timer" /> was constructed, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite" /> to prevent the timer from restarting. Specify zero (0) to restart the timer immediately.</param>
|
||||
/// <param name="period">The time interval between invocations of the callback method specified when the <see cref="T:System.Threading.Timer" /> was constructed, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite" /> to disable periodic signaling.</param>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the timer was successfully updated; otherwise, <see langword="false" />.</returns>
|
||||
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.Timer" /> has already been disposed.</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="dueTime" /> or <paramref name="period" /> parameter is negative and is not equal to <see cref="F:System.Threading.Timeout.Infinite" />.</exception>
|
||||
// Token: 0x06001E74 RID: 7796 RVA: 0x00013710 File Offset: 0x00011910
|
||||
[Token(Token = "0x6001E74")]
|
||||
[Address(RVA = "0x1DB6980", Offset = "0x1DB5780", VA = "0x181DB6980")]
|
||||
public bool Change(int dueTime, int period)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
/// <summary>Changes the start time and the interval between method invocations for a timer, using <see cref="T:System.TimeSpan" /> values to measure time intervals.</summary>
|
||||
/// <param name="dueTime">A <see cref="T:System.TimeSpan" /> representing the amount of time to delay before invoking the callback method specified when the <see cref="T:System.Threading.Timer" /> was constructed. Specify negative one (-1) milliseconds to prevent the timer from restarting. Specify zero (0) to restart the timer immediately.</param>
|
||||
/// <param name="period">The time interval between invocations of the callback method specified when the <see cref="T:System.Threading.Timer" /> was constructed. Specify negative one (-1) milliseconds to disable periodic signaling.</param>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the timer was successfully updated; otherwise, <see langword="false" />.</returns>
|
||||
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.Timer" /> has already been disposed.</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="dueTime" /> or <paramref name="period" /> parameter, in milliseconds, is less than -1.</exception>
|
||||
/// <exception cref="T:System.NotSupportedException">The <paramref name="dueTime" /> or <paramref name="period" /> parameter, in milliseconds, is greater than 4294967294.</exception>
|
||||
// Token: 0x06001E75 RID: 7797 RVA: 0x00013728 File Offset: 0x00011928
|
||||
[Token(Token = "0x6001E75")]
|
||||
[Address(RVA = "0x1DB69A0", Offset = "0x1DB57A0", VA = "0x181DB69A0")]
|
||||
public bool Change(TimeSpan dueTime, TimeSpan period)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
/// <summary>Releases all resources used by the current instance of <see cref="T:System.Threading.Timer" />.</summary>
|
||||
// Token: 0x06001E76 RID: 7798 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001E76")]
|
||||
[Address(RVA = "0x1DB6A20", Offset = "0x1DB5820", VA = "0x181DB6A20", Slot = "6")]
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001E77 RID: 7799 RVA: 0x00013740 File Offset: 0x00011940
|
||||
[Token(Token = "0x6001E77")]
|
||||
[Address(RVA = "0x1DB6730", Offset = "0x1DB5530", VA = "0x181DB6730")]
|
||||
private bool Change(long dueTime, long period, bool first)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x06001E78 RID: 7800 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001E78")]
|
||||
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
|
||||
internal void KeepRootedWhileScheduled()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001E79 RID: 7801 RVA: 0x00013758 File Offset: 0x00011958
|
||||
[Token(Token = "0x6001E79")]
|
||||
[Address(RVA = "0x1DB6AB0", Offset = "0x1DB58B0", VA = "0x181DB6AB0")]
|
||||
private static long GetTimeMonotonic()
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
|
||||
// Token: 0x04001157 RID: 4439
|
||||
[Token(Token = "0x4001157")]
|
||||
private static readonly Timer.Scheduler scheduler;
|
||||
|
||||
// Token: 0x04001158 RID: 4440
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4001158")]
|
||||
private TimerCallback callback;
|
||||
|
||||
// Token: 0x04001159 RID: 4441
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4001159")]
|
||||
private object state;
|
||||
|
||||
// Token: 0x0400115A RID: 4442
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400115A")]
|
||||
private long due_time_ms;
|
||||
|
||||
// Token: 0x0400115B RID: 4443
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400115B")]
|
||||
private long period_ms;
|
||||
|
||||
// Token: 0x0400115C RID: 4444
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400115C")]
|
||||
private long next_run;
|
||||
|
||||
// Token: 0x0400115D RID: 4445
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400115D")]
|
||||
private bool disposed;
|
||||
|
||||
// Token: 0x0400115E RID: 4446
|
||||
[Token(Token = "0x400115E")]
|
||||
private const long MaxValue = 4294967294L;
|
||||
|
||||
// Token: 0x0200034E RID: 846
|
||||
[Token(Token = "0x200034E")]
|
||||
private sealed class TimerComparer : IComparer
|
||||
{
|
||||
// Token: 0x06001E7B RID: 7803 RVA: 0x00013770 File Offset: 0x00011970
|
||||
[Token(Token = "0x6001E7B")]
|
||||
[Address(RVA = "0x1DB6690", Offset = "0x1DB5490", VA = "0x181DB6690", Slot = "4")]
|
||||
public int Compare(object x, object y)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06001E7C RID: 7804 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001E7C")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public TimerComparer()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0200034F RID: 847
|
||||
[Token(Token = "0x200034F")]
|
||||
private sealed class Scheduler
|
||||
{
|
||||
// Token: 0x17000413 RID: 1043
|
||||
// (get) Token: 0x06001E7E RID: 7806 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x17000413")]
|
||||
public static Timer.Scheduler Instance
|
||||
{
|
||||
[Token(Token = "0x6001E7E")]
|
||||
[Address(RVA = "0x1D9AF00", Offset = "0x1D99D00", VA = "0x181D9AF00")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06001E7F RID: 7807 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001E7F")]
|
||||
[Address(RVA = "0x1D9AD50", Offset = "0x1D99B50", VA = "0x181D9AD50")]
|
||||
private Scheduler()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001E80 RID: 7808 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001E80")]
|
||||
[Address(RVA = "0x1D9A570", Offset = "0x1D99370", VA = "0x181D9A570")]
|
||||
public void Remove(Timer timer)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001E81 RID: 7809 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001E81")]
|
||||
[Address(RVA = "0x1D9A1E0", Offset = "0x1D98FE0", VA = "0x181D9A1E0")]
|
||||
public void Change(Timer timer, long new_next_run)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001E82 RID: 7810 RVA: 0x00013788 File Offset: 0x00011988
|
||||
[Token(Token = "0x6001E82")]
|
||||
[Address(RVA = "0x1D9A3A0", Offset = "0x1D991A0", VA = "0x181D9A3A0")]
|
||||
private int FindByDueTime(long nr)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06001E83 RID: 7811 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001E83")]
|
||||
[Address(RVA = "0x1D9A090", Offset = "0x1D98E90", VA = "0x181D9A090")]
|
||||
private void Add(Timer timer)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001E84 RID: 7812 RVA: 0x000137A0 File Offset: 0x000119A0
|
||||
[Token(Token = "0x6001E84")]
|
||||
[Address(RVA = "0x1D9A510", Offset = "0x1D99310", VA = "0x181D9A510")]
|
||||
private int InternalRemove(Timer timer)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06001E85 RID: 7813 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001E85")]
|
||||
[Address(RVA = "0x1D9AC80", Offset = "0x1D99A80", VA = "0x181D9AC80")]
|
||||
private static void TimerCB(object o)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001E86 RID: 7814 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001E86")]
|
||||
[Address(RVA = "0x1D9A630", Offset = "0x1D99430", VA = "0x181D9A630")]
|
||||
private void SchedulerThread()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001E87 RID: 7815 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001E87")]
|
||||
[Address(RVA = "0x1D9AC00", Offset = "0x1D99A00", VA = "0x181D9AC00")]
|
||||
private void ShrinkIfNeeded(List<Timer> list, int initial)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400115F RID: 4447
|
||||
[Token(Token = "0x400115F")]
|
||||
private static Timer.Scheduler instance;
|
||||
|
||||
// Token: 0x04001160 RID: 4448
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4001160")]
|
||||
private SortedList list;
|
||||
|
||||
// Token: 0x04001161 RID: 4449
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4001161")]
|
||||
private ManualResetEvent changed;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user