Files
Apr2020-Cpp2Il-Dump/mscorlib/System/Threading/SpinWait.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

55 lines
1.8 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.Threading
{
/// <summary>Provides support for spin-based waiting.</summary>
// Token: 0x02000311 RID: 785
[Token(Token = "0x2000311")]
public struct SpinWait
{
/// <summary>Gets the number of times <see cref="M:System.Threading.SpinWait.SpinOnce" /> has been called on this instance.</summary>
/// <returns>Returns an integer that represents the number of times <see cref="M:System.Threading.SpinWait.SpinOnce" /> has been called on this instance.</returns>
// Token: 0x170003E9 RID: 1001
// (get) Token: 0x06001CFF RID: 7423 RVA: 0x00012C78 File Offset: 0x00010E78
[Token(Token = "0x170003E9")]
public int Count
{
[Token(Token = "0x6001CFF")]
[Address(RVA = "0x57C620", Offset = "0x57B420", VA = "0x18057C620")]
get
{
return 0;
}
}
/// <summary>Gets whether the next call to <see cref="M:System.Threading.SpinWait.SpinOnce" /> will yield the processor, triggering a forced context switch.</summary>
/// <returns>Whether the next call to <see cref="M:System.Threading.SpinWait.SpinOnce" /> will yield the processor, triggering a forced context switch.</returns>
// Token: 0x170003EA RID: 1002
// (get) Token: 0x06001D00 RID: 7424 RVA: 0x00012C90 File Offset: 0x00010E90
[Token(Token = "0x170003EA")]
public bool NextSpinWillYield
{
[Token(Token = "0x6001D00")]
[Address(RVA = "0x2927B50", Offset = "0x2926950", VA = "0x182927B50")]
get
{
return default(bool);
}
}
/// <summary>Performs a single spin.</summary>
// Token: 0x06001D01 RID: 7425 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001D01")]
[Address(RVA = "0x2927A90", Offset = "0x2926890", VA = "0x182927A90")]
public void SpinOnce()
{
}
// Token: 0x040010A1 RID: 4257
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40010A1")]
private int m_count;
}
}