Files
Aug2021-Cpp2IL-Dump/mscorlib/System/Threading/Monitor.cs
T
2026-04-10 22:50:51 +02:00

256 lines
15 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: 0x02000323 RID: 803
[Token(Token = "0x2000323")]
[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: 0x06001D52 RID: 7506 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001D52")]
[Address(RVA = "0x2923730", Offset = "0x2922530", VA = "0x182923730")]
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: 0x06001D53 RID: 7507 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001D53")]
[Address(RVA = "0x2923740", Offset = "0x2922540", VA = "0x182923740")]
public static void Enter(object obj, ref bool lockTaken)
{
}
// Token: 0x06001D54 RID: 7508 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001D54")]
[Address(RVA = "0x2923D20", Offset = "0x2922B20", VA = "0x182923D20")]
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: 0x06001D55 RID: 7509 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001D55")]
[Address(RVA = "0x29237D0", Offset = "0x29225D0", VA = "0x1829237D0")]
[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: 0x06001D56 RID: 7510 RVA: 0x00012E58 File Offset: 0x00011058
[Token(Token = "0x6001D56")]
[Address(RVA = "0x2923D90", Offset = "0x2922B90", VA = "0x182923D90")]
public static bool TryEnter(object obj)
{
return default(bool);
}
/// <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: 0x06001D57 RID: 7511 RVA: 0x00012E70 File Offset: 0x00011070
[Token(Token = "0x6001D57")]
[Address(RVA = "0x2923DC0", Offset = "0x2922BC0", VA = "0x182923DC0")]
public static bool TryEnter(object obj, int millisecondsTimeout)
{
return default(bool);
}
// Token: 0x06001D58 RID: 7512 RVA: 0x00012E88 File Offset: 0x00011088
[Token(Token = "0x6001D58")]
[Address(RVA = "0x29237E0", Offset = "0x29225E0", VA = "0x1829237E0")]
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: 0x06001D59 RID: 7513 RVA: 0x00012EA0 File Offset: 0x000110A0
[Token(Token = "0x6001D59")]
[Address(RVA = "0x2923E00", Offset = "0x2922C00", VA = "0x182923E00")]
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: 0x06001D5A RID: 7514 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001D5A")]
[Address(RVA = "0x2923DE0", Offset = "0x2922BE0", VA = "0x182923DE0")]
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: 0x06001D5B RID: 7515 RVA: 0x00012EB8 File Offset: 0x000110B8
[Token(Token = "0x6001D5B")]
[Address(RVA = "0x2923EC0", Offset = "0x2922CC0", VA = "0x182923EC0")]
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: 0x06001D5C RID: 7516 RVA: 0x00012ED0 File Offset: 0x000110D0
[Token(Token = "0x6001D5C")]
[Address(RVA = "0x2923EC0", Offset = "0x2922CC0", VA = "0x182923EC0")]
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: 0x06001D5D RID: 7517 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001D5D")]
[Address(RVA = "0x2923B20", Offset = "0x2922920", VA = "0x182923B20")]
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: 0x06001D5E RID: 7518 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001D5E")]
[Address(RVA = "0x2923A60", Offset = "0x2922860", VA = "0x182923A60")]
public static void PulseAll(object obj)
{
}
// Token: 0x06001D5F RID: 7519 RVA: 0x00012EE8 File Offset: 0x000110E8
[Token(Token = "0x6001D5F")]
[Address(RVA = "0x29238A0", Offset = "0x29226A0", VA = "0x1829238A0")]
private static bool Monitor_test_synchronised(object obj)
{
return default(bool);
}
// Token: 0x06001D60 RID: 7520 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001D60")]
[Address(RVA = "0x2923890", Offset = "0x2922690", VA = "0x182923890")]
private static void Monitor_pulse(object obj)
{
}
// Token: 0x06001D61 RID: 7521 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001D61")]
[Address(RVA = "0x2923930", Offset = "0x2922730", VA = "0x182923930")]
private static void ObjPulse(object obj)
{
}
// Token: 0x06001D62 RID: 7522 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001D62")]
[Address(RVA = "0x2923880", Offset = "0x2922680", VA = "0x182923880")]
private static void Monitor_pulse_all(object obj)
{
}
// Token: 0x06001D63 RID: 7523 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001D63")]
[Address(RVA = "0x29238C0", Offset = "0x29226C0", VA = "0x1829238C0")]
private static void ObjPulseAll(object obj)
{
}
// Token: 0x06001D64 RID: 7524 RVA: 0x00012F00 File Offset: 0x00011100
[Token(Token = "0x6001D64")]
[Address(RVA = "0x29238B0", Offset = "0x29226B0", VA = "0x1829238B0")]
private static bool Monitor_wait(object obj, int ms)
{
return default(bool);
}
// Token: 0x06001D65 RID: 7525 RVA: 0x00012F18 File Offset: 0x00011118
[Token(Token = "0x6001D65")]
[Address(RVA = "0x29239A0", Offset = "0x29227A0", VA = "0x1829239A0")]
private static bool ObjWait(bool exitContext, int millisecondsTimeout, object obj)
{
return default(bool);
}
// Token: 0x06001D66 RID: 7526 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001D66")]
[Address(RVA = "0x2923FD0", Offset = "0x2922DD0", VA = "0x182923FD0")]
private static void try_enter_with_atomic_var(object obj, int millisecondsTimeout, ref bool lockTaken)
{
}
// Token: 0x06001D67 RID: 7527 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001D67")]
[Address(RVA = "0x2923BE0", Offset = "0x29229E0", VA = "0x182923BE0")]
private static void ReliableEnterTimeout(object obj, int timeout, ref bool lockTaken)
{
}
// Token: 0x06001D68 RID: 7528 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001D68")]
[Address(RVA = "0x2923CA0", Offset = "0x2922AA0", VA = "0x182923CA0")]
private static void ReliableEnter(object obj, ref bool lockTaken)
{
}
}
}