Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Threading/ReaderWriterLock.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

105 lines
3.8 KiB
C#

using System;
using System.Collections;
using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Threading
{
/// <summary>Defines a lock that supports single writers and multiple readers.</summary>
// Token: 0x02000366 RID: 870
[Token(Token = "0x2000366")]
[ComVisible(true)]
public sealed class ReaderWriterLock : CriticalFinalizerObject
{
/// <summary>Initializes a new instance of the <see cref="T:System.Threading.ReaderWriterLock" /> class.</summary>
// Token: 0x06002070 RID: 8304 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002070")]
[Address(RVA = "0xB42510", Offset = "0xB41510", VA = "0x180B42510")]
public ReaderWriterLock()
{
}
/// <summary>Ensures that resources are freed and other cleanup operations are performed when the garbage collector reclaims the <see cref="T:System.Threading.ReaderWriterLock" /> object.</summary>
// Token: 0x06002071 RID: 8305 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002071")]
[Address(RVA = "0xB42260", Offset = "0xB41260", VA = "0x180B42260", Slot = "1")]
protected override void Finalize()
{
}
/// <summary>Acquires the writer lock, using an <see cref="T:System.Int32" /> value for the time-out.</summary>
/// <param name="millisecondsTimeout">The time-out in milliseconds.</param>
/// <exception cref="T:System.ApplicationException">
/// <paramref name="timeout" /> expires before the lock request is granted.</exception>
// Token: 0x06002072 RID: 8306 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002072")]
[Address(RVA = "0xB42250", Offset = "0xB41250", VA = "0x180B42250")]
public void AcquireWriterLock(int millisecondsTimeout)
{
}
// Token: 0x06002073 RID: 8307 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002073")]
[Address(RVA = "0xB42040", Offset = "0xB41040", VA = "0x180B42040")]
private void AcquireWriterLock(int millisecondsTimeout, int initialLockCount)
{
}
/// <summary>Decrements the lock count on the writer lock.</summary>
/// <exception cref="T:System.ApplicationException">The thread does not have the writer lock.</exception>
// Token: 0x06002074 RID: 8308 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002074")]
[Address(RVA = "0xB42330", Offset = "0xB41330", VA = "0x180B42330")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public void ReleaseWriterLock()
{
}
// Token: 0x06002075 RID: 8309 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002075")]
[Address(RVA = "0xB424B0", Offset = "0xB414B0", VA = "0x180B424B0")]
private void ReleaseWriterLock(int releaseCount)
{
}
// Token: 0x06002076 RID: 8310 RVA: 0x00015AC8 File Offset: 0x00013CC8
[Token(Token = "0x6002076")]
[Address(RVA = "0xB422C0", Offset = "0xB412C0", VA = "0x180B422C0")]
private bool HasWriterLock()
{
return default(bool);
}
// Token: 0x040011E4 RID: 4580
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40011E4")]
private int seq_num;
// Token: 0x040011E5 RID: 4581
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
[Token(Token = "0x40011E5")]
private int state;
// Token: 0x040011E6 RID: 4582
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40011E6")]
private int readers;
// Token: 0x040011E7 RID: 4583
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
[Token(Token = "0x40011E7")]
private int writer_lock_owner;
// Token: 0x040011E8 RID: 4584
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x40011E8")]
private LockQueue writer_queue;
// Token: 0x040011E9 RID: 4585
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x40011E9")]
private Hashtable reader_locks;
}
}