55 lines
1.8 KiB
C#
55 lines
1.8 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Threading
|
|
{
|
|
/// <summary>Provides support for spin-based waiting.</summary>
|
|
// Token: 0x0200032B RID: 811
|
|
[Token(Token = "0x200032B")]
|
|
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: 0x1700045F RID: 1119
|
|
// (get) Token: 0x06001F00 RID: 7936 RVA: 0x00015018 File Offset: 0x00013218
|
|
[Token(Token = "0x1700045F")]
|
|
public int Count
|
|
{
|
|
[Token(Token = "0x6001F00")]
|
|
[Address(RVA = "0x5C1530", Offset = "0x5C0530", VA = "0x1805C1530")]
|
|
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: 0x17000460 RID: 1120
|
|
// (get) Token: 0x06001F01 RID: 7937 RVA: 0x00015030 File Offset: 0x00013230
|
|
[Token(Token = "0x17000460")]
|
|
public bool NextSpinWillYield
|
|
{
|
|
[Token(Token = "0x6001F01")]
|
|
[Address(RVA = "0xB45BD0", Offset = "0xB44BD0", VA = "0x180B45BD0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Performs a single spin.</summary>
|
|
// Token: 0x06001F02 RID: 7938 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001F02")]
|
|
[Address(RVA = "0xB45AB0", Offset = "0xB44AB0", VA = "0x180B45AB0")]
|
|
public void SpinOnce()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400115C RID: 4444
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x400115C")]
|
|
private int m_count;
|
|
}
|
|
}
|