Files
2026-04-10 22:50:51 +02:00

66 lines
4.0 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Threading
{
/// <summary>Represents a thread synchronization event.</summary>
// Token: 0x0200031A RID: 794
[Token(Token = "0x200031A")]
[ComVisible(true)]
public class EventWaitHandle : WaitHandle
{
/// <summary>Initializes a new instance of the <see cref="T:System.Threading.EventWaitHandle" /> class, specifying whether the wait handle is initially signaled, and whether it resets automatically or manually.</summary>
/// <param name="initialState">
/// <see langword="true" /> to set the initial state to signaled; <see langword="false" /> to set it to nonsignaled.</param>
/// <param name="mode">One of the <see cref="T:System.Threading.EventResetMode" /> values that determines whether the event resets automatically or manually.</param>
// Token: 0x06001D16 RID: 7446 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001D16")]
[Address(RVA = "0x2920350", Offset = "0x291F150", VA = "0x182920350")]
public EventWaitHandle(bool initialState, EventResetMode mode)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Threading.EventWaitHandle" /> class, specifying whether the wait handle is initially signaled if created as a result of this call, whether it resets automatically or manually, and the name of a system synchronization event.</summary>
/// <param name="initialState">
/// <see langword="true" /> to set the initial state to signaled if the named event is created as a result of this call; <see langword="false" /> to set it to nonsignaled.</param>
/// <param name="mode">One of the <see cref="T:System.Threading.EventResetMode" /> values that determines whether the event resets automatically or manually.</param>
/// <param name="name">The name of a system-wide synchronization event.</param>
/// <exception cref="T:System.IO.IOException">A Win32 error occurred.</exception>
/// <exception cref="T:System.UnauthorizedAccessException">The named event exists and has access control security, but the user does not have <see cref="F:System.Security.AccessControl.EventWaitHandleRights.FullControl" />.</exception>
/// <exception cref="T:System.Threading.WaitHandleCannotBeOpenedException">The named event cannot be created, perhaps because a wait handle of a different type has the same name.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="name" /> is longer than 260 characters.</exception>
// Token: 0x06001D17 RID: 7447 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001D17")]
[Address(RVA = "0x2920370", Offset = "0x291F170", VA = "0x182920370")]
public EventWaitHandle(bool initialState, EventResetMode mode, string name)
{
}
/// <summary>Sets the state of the event to nonsignaled, causing threads to block.</summary>
/// <returns>
/// <see langword="true" /> if the operation succeeds; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="M:System.Threading.WaitHandle.Close" /> method was previously called on this <see cref="T:System.Threading.EventWaitHandle" />.</exception>
// Token: 0x06001D18 RID: 7448 RVA: 0x00012D08 File Offset: 0x00010F08
[Token(Token = "0x6001D18")]
[Address(RVA = "0x2920270", Offset = "0x291F070", VA = "0x182920270")]
public bool Reset()
{
return default(bool);
}
/// <summary>Sets the state of the event to signaled, allowing one or more waiting threads to proceed.</summary>
/// <returns>
/// <see langword="true" /> if the operation succeeds; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="M:System.Threading.WaitHandle.Close" /> method was previously called on this <see cref="T:System.Threading.EventWaitHandle" />.</exception>
// Token: 0x06001D19 RID: 7449 RVA: 0x00012D20 File Offset: 0x00010F20
[Token(Token = "0x6001D19")]
[Address(RVA = "0x29202E0", Offset = "0x291F0E0", VA = "0x1829202E0")]
public bool Set()
{
return default(bool);
}
}
}