268 lines
16 KiB
C#
268 lines
16 KiB
C#
using System;
|
|
using System.Runtime.ConstrainedExecution;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Threading
|
|
{
|
|
/// <summary>Provides a mechanism that synchronizes access to objects.</summary>
|
|
// Token: 0x0200033D RID: 829
|
|
[Token(Token = "0x200033D")]
|
|
[ComVisible(true)]
|
|
public static class Monitor
|
|
{
|
|
/// <summary>Acquires an exclusive lock on the specified object.</summary>
|
|
/// <param name="obj">The object on which to acquire the monitor lock.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="obj" /> parameter is <see langword="null" />.</exception>
|
|
// Token: 0x06001F53 RID: 8019 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001F53")]
|
|
[Address(RVA = "0xF2E8F0", Offset = "0xF2D8F0", VA = "0x180F2E8F0")]
|
|
public static void Enter(object obj)
|
|
{
|
|
}
|
|
|
|
/// <summary>Acquires an exclusive lock on the specified object, and atomically sets a value that indicates whether the lock was taken.</summary>
|
|
/// <param name="obj">The object on which to wait.</param>
|
|
/// <param name="lockTaken">The result of the attempt to acquire the lock, passed by reference. The input must be <see langword="false" />. The output is <see langword="true" /> if the lock is acquired; otherwise, the output is <see langword="false" />. The output is set even if an exception occurs during the attempt to acquire the lock.
|
|
/// Note If no exception occurs, the output of this method is always <see langword="true" />.</param>
|
|
/// <exception cref="T:System.ArgumentException">The input to <paramref name="lockTaken" /> is <see langword="true" />.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="obj" /> parameter is <see langword="null" />.</exception>
|
|
// Token: 0x06001F54 RID: 8020 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001F54")]
|
|
[Address(RVA = "0xF2E900", Offset = "0xF2D900", VA = "0x180F2E900")]
|
|
public static void Enter(object obj, ref bool lockTaken)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001F55 RID: 8021 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001F55")]
|
|
[Address(RVA = "0xF2EEE0", Offset = "0xF2DEE0", VA = "0x180F2EEE0")]
|
|
private static void ThrowLockTakenException()
|
|
{
|
|
}
|
|
|
|
/// <summary>Releases an exclusive lock on the specified object.</summary>
|
|
/// <param name="obj">The object on which to release the lock.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="obj" /> parameter is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Threading.SynchronizationLockException">The current thread does not own the lock for the specified object.</exception>
|
|
// Token: 0x06001F56 RID: 8022 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001F56")]
|
|
[Address(RVA = "0xF2E990", Offset = "0xF2D990", VA = "0x180F2E990")]
|
|
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
|
|
public static void Exit(object obj)
|
|
{
|
|
}
|
|
|
|
/// <summary>Attempts to acquire an exclusive lock on the specified object.</summary>
|
|
/// <param name="obj">The object on which to acquire the lock.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the current thread acquires the lock; otherwise, <see langword="false" />.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="obj" /> parameter is <see langword="null" />.</exception>
|
|
// Token: 0x06001F57 RID: 8023 RVA: 0x000151F8 File Offset: 0x000133F8
|
|
[Token(Token = "0x6001F57")]
|
|
[Address(RVA = "0xF2EF50", Offset = "0xF2DF50", VA = "0x180F2EF50")]
|
|
public static bool TryEnter(object obj)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Attempts to acquire an exclusive lock on the specified object, and atomically sets a value that indicates whether the lock was taken.</summary>
|
|
/// <param name="obj">The object on which to acquire the lock.</param>
|
|
/// <param name="lockTaken">The result of the attempt to acquire the lock, passed by reference. The input must be <see langword="false" />. The output is <see langword="true" /> if the lock is acquired; otherwise, the output is <see langword="false" />. The output is set even if an exception occurs during the attempt to acquire the lock.</param>
|
|
/// <exception cref="T:System.ArgumentException">The input to <paramref name="lockTaken" /> is <see langword="true" />.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="obj" /> parameter is <see langword="null" />.</exception>
|
|
// Token: 0x06001F58 RID: 8024 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001F58")]
|
|
[Address(RVA = "0xF2F080", Offset = "0xF2E080", VA = "0x180F2F080")]
|
|
public static void TryEnter(object obj, ref bool lockTaken)
|
|
{
|
|
}
|
|
|
|
/// <summary>Attempts, for the specified number of milliseconds, to acquire an exclusive lock on the specified object.</summary>
|
|
/// <param name="obj">The object on which to acquire the lock.</param>
|
|
/// <param name="millisecondsTimeout">The number of milliseconds to wait for the lock.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the current thread acquires the lock; otherwise, <see langword="false" />.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="obj" /> parameter is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="millisecondsTimeout" /> is negative, and not equal to <see cref="F:System.Threading.Timeout.Infinite" />.</exception>
|
|
// Token: 0x06001F59 RID: 8025 RVA: 0x00015210 File Offset: 0x00013410
|
|
[Token(Token = "0x6001F59")]
|
|
[Address(RVA = "0xF2EF80", Offset = "0xF2DF80", VA = "0x180F2EF80")]
|
|
public static bool TryEnter(object obj, int millisecondsTimeout)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06001F5A RID: 8026 RVA: 0x00015228 File Offset: 0x00013428
|
|
[Token(Token = "0x6001F5A")]
|
|
[Address(RVA = "0xF2E9A0", Offset = "0xF2D9A0", VA = "0x180F2E9A0")]
|
|
private static int MillisecondsTimeoutFromTimeSpan(TimeSpan timeout)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Attempts, for the specified amount of time, to acquire an exclusive lock on the specified object.</summary>
|
|
/// <param name="obj">The object on which to acquire the lock.</param>
|
|
/// <param name="timeout">A <see cref="T:System.TimeSpan" /> representing the amount of time to wait for the lock. A value of -1 millisecond specifies an infinite wait.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the current thread acquires the lock; otherwise, <see langword="false" />.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="obj" /> parameter is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">The value of <paramref name="timeout" /> in milliseconds is negative and is not equal to <see cref="F:System.Threading.Timeout.Infinite" /> (-1 millisecond), or is greater than <see cref="F:System.Int32.MaxValue" />.</exception>
|
|
// Token: 0x06001F5B RID: 8027 RVA: 0x00015240 File Offset: 0x00013440
|
|
[Token(Token = "0x6001F5B")]
|
|
[Address(RVA = "0xF2EFC0", Offset = "0xF2DFC0", VA = "0x180F2EFC0")]
|
|
public static bool TryEnter(object obj, TimeSpan timeout)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Attempts, for the specified number of milliseconds, to acquire an exclusive lock on the specified object, and atomically sets a value that indicates whether the lock was taken.</summary>
|
|
/// <param name="obj">The object on which to acquire the lock.</param>
|
|
/// <param name="millisecondsTimeout">The number of milliseconds to wait for the lock.</param>
|
|
/// <param name="lockTaken">The result of the attempt to acquire the lock, passed by reference. The input must be <see langword="false" />. The output is <see langword="true" /> if the lock is acquired; otherwise, the output is <see langword="false" />. The output is set even if an exception occurs during the attempt to acquire the lock.</param>
|
|
/// <exception cref="T:System.ArgumentException">The input to <paramref name="lockTaken" /> is <see langword="true" />.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="obj" /> parameter is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="millisecondsTimeout" /> is negative, and not equal to <see cref="F:System.Threading.Timeout.Infinite" />.</exception>
|
|
// Token: 0x06001F5C RID: 8028 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001F5C")]
|
|
[Address(RVA = "0xF2EFA0", Offset = "0xF2DFA0", VA = "0x180F2EFA0")]
|
|
public static void TryEnter(object obj, int millisecondsTimeout, ref bool lockTaken)
|
|
{
|
|
}
|
|
|
|
/// <summary>Releases the lock on an object and blocks the current thread until it reacquires the lock. If the specified time-out interval elapses, the thread enters the ready queue. This method also specifies whether the synchronization domain for the context (if in a synchronized context) is exited before the wait and reacquired afterward.</summary>
|
|
/// <param name="obj">The object on which to wait.</param>
|
|
/// <param name="millisecondsTimeout">The number of milliseconds to wait before the thread enters the ready queue.</param>
|
|
/// <param name="exitContext">
|
|
/// <see langword="true" /> to exit and reacquire the synchronization domain for the context (if in a synchronized context) before the wait; otherwise, <see langword="false" />.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the lock was reacquired before the specified time elapsed; <see langword="false" /> if the lock was reacquired after the specified time elapsed. The method does not return until the lock is reacquired.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="obj" /> parameter is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Threading.SynchronizationLockException">
|
|
/// <see langword="Wait" /> is not invoked from within a synchronized block of code.</exception>
|
|
/// <exception cref="T:System.Threading.ThreadInterruptedException">The thread that invokes <see langword="Wait" /> is later interrupted from the waiting state. This happens when another thread calls this thread's <see cref="M:System.Threading.Thread.Interrupt" /> method.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">The value of the <paramref name="millisecondsTimeout" /> parameter is negative, and is not equal to <see cref="F:System.Threading.Timeout.Infinite" />.</exception>
|
|
// Token: 0x06001F5D RID: 8029 RVA: 0x00015258 File Offset: 0x00013458
|
|
[Token(Token = "0x6001F5D")]
|
|
[Address(RVA = "0xF2F110", Offset = "0xF2E110", VA = "0x180F2F110")]
|
|
public static bool Wait(object obj, int millisecondsTimeout, bool exitContext)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Releases the lock on an object and blocks the current thread until it reacquires the lock. If the specified time-out interval elapses, the thread enters the ready queue.</summary>
|
|
/// <param name="obj">The object on which to wait.</param>
|
|
/// <param name="millisecondsTimeout">The number of milliseconds to wait before the thread enters the ready queue.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the lock was reacquired before the specified time elapsed; <see langword="false" /> if the lock was reacquired after the specified time elapsed. The method does not return until the lock is reacquired.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="obj" /> parameter is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Threading.SynchronizationLockException">The calling thread does not own the lock for the specified object.</exception>
|
|
/// <exception cref="T:System.Threading.ThreadInterruptedException">The thread that invokes <see langword="Wait" /> is later interrupted from the waiting state. This happens when another thread calls this thread's <see cref="M:System.Threading.Thread.Interrupt" /> method.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">The value of the <paramref name="millisecondsTimeout" /> parameter is negative, and is not equal to <see cref="F:System.Threading.Timeout.Infinite" />.</exception>
|
|
// Token: 0x06001F5E RID: 8030 RVA: 0x00015270 File Offset: 0x00013470
|
|
[Token(Token = "0x6001F5E")]
|
|
[Address(RVA = "0xF2F110", Offset = "0xF2E110", VA = "0x180F2F110")]
|
|
public static bool Wait(object obj, int millisecondsTimeout)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Notifies a thread in the waiting queue of a change in the locked object's state.</summary>
|
|
/// <param name="obj">The object a thread is waiting for.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="obj" /> parameter is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Threading.SynchronizationLockException">The calling thread does not own the lock for the specified object.</exception>
|
|
// Token: 0x06001F5F RID: 8031 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001F5F")]
|
|
[Address(RVA = "0xF2ECE0", Offset = "0xF2DCE0", VA = "0x180F2ECE0")]
|
|
public static void Pulse(object obj)
|
|
{
|
|
}
|
|
|
|
/// <summary>Notifies all waiting threads of a change in the object's state.</summary>
|
|
/// <param name="obj">The object that sends the pulse.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="obj" /> parameter is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Threading.SynchronizationLockException">The calling thread does not own the lock for the specified object.</exception>
|
|
// Token: 0x06001F60 RID: 8032 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001F60")]
|
|
[Address(RVA = "0xF2EC20", Offset = "0xF2DC20", VA = "0x180F2EC20")]
|
|
public static void PulseAll(object obj)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001F61 RID: 8033 RVA: 0x00015288 File Offset: 0x00013488
|
|
[Token(Token = "0x6001F61")]
|
|
[Address(RVA = "0xF2EA60", Offset = "0xF2DA60", VA = "0x180F2EA60")]
|
|
private static bool Monitor_test_synchronised(object obj)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06001F62 RID: 8034 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001F62")]
|
|
[Address(RVA = "0xF2EA50", Offset = "0xF2DA50", VA = "0x180F2EA50")]
|
|
private static void Monitor_pulse(object obj)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001F63 RID: 8035 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001F63")]
|
|
[Address(RVA = "0xF2EAF0", Offset = "0xF2DAF0", VA = "0x180F2EAF0")]
|
|
private static void ObjPulse(object obj)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001F64 RID: 8036 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001F64")]
|
|
[Address(RVA = "0xF2EA40", Offset = "0xF2DA40", VA = "0x180F2EA40")]
|
|
private static void Monitor_pulse_all(object obj)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001F65 RID: 8037 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001F65")]
|
|
[Address(RVA = "0xF2EA80", Offset = "0xF2DA80", VA = "0x180F2EA80")]
|
|
private static void ObjPulseAll(object obj)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001F66 RID: 8038 RVA: 0x000152A0 File Offset: 0x000134A0
|
|
[Token(Token = "0x6001F66")]
|
|
[Address(RVA = "0xF2EA70", Offset = "0xF2DA70", VA = "0x180F2EA70")]
|
|
private static bool Monitor_wait(object obj, int ms)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06001F67 RID: 8039 RVA: 0x000152B8 File Offset: 0x000134B8
|
|
[Token(Token = "0x6001F67")]
|
|
[Address(RVA = "0xF2EB60", Offset = "0xF2DB60", VA = "0x180F2EB60")]
|
|
private static bool ObjWait(bool exitContext, int millisecondsTimeout, object obj)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06001F68 RID: 8040 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001F68")]
|
|
[Address(RVA = "0xF2F220", Offset = "0xF2E220", VA = "0x180F2F220")]
|
|
private static void try_enter_with_atomic_var(object obj, int millisecondsTimeout, ref bool lockTaken)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001F69 RID: 8041 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001F69")]
|
|
[Address(RVA = "0xF2EDA0", Offset = "0xF2DDA0", VA = "0x180F2EDA0")]
|
|
private static void ReliableEnterTimeout(object obj, int timeout, ref bool lockTaken)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001F6A RID: 8042 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001F6A")]
|
|
[Address(RVA = "0xF2EE60", Offset = "0xF2DE60", VA = "0x180F2EE60")]
|
|
private static void ReliableEnter(object obj, ref bool lockTaken)
|
|
{
|
|
}
|
|
}
|
|
}
|