12 : this(initialState, mode, null, out var _)
17 : this(initialState, mode, name, out var _)
30 [SupportedOSPlatform(
"windows")]
43 [SupportedOSPlatform(
"windows")]
51 base.SafeWaitHandle =
handle;
56 uint num = (initialState ? 2u : 0u);
66 if (!
string.IsNullOrEmpty(name) && lastPInvokeError == 6)
72 createdNew = lastPInvokeError != 183;
73 base.SafeWaitHandle = safeWaitHandle;
91 switch (lastPInvokeError)
static bool ResetEvent(SafeWaitHandle handle)
static SafeWaitHandle OpenEvent(uint desiredAccess, bool inheritHandle, string name)
static bool SetEvent(SafeWaitHandle handle)
static SafeWaitHandle CreateEventEx(IntPtr lpSecurityAttributes, string name, uint flags, uint desiredAccess)
static Exception GetExceptionForLastWin32Error(string path="")
static Exception GetExceptionForWin32Error(int errorCode, string path="")
static int GetLastPInvokeError()
void SetHandleAsInvalid()
static string Format(string resourceFormat, object p1)
static string Argument_InvalidFlag
static string Threading_WaitHandleCannotBeOpenedException_InvalidHandle
static string Argument_EmptyName
static string IO_PathNotFound_Path
static bool TryOpenExisting(string name, [NotNullWhen(true)] out EventWaitHandle? result)
static EventWaitHandle OpenExisting(string name)
static bool Set(SafeWaitHandle waitHandle)
EventWaitHandle(bool initialState, EventResetMode mode, string? name)
EventWaitHandle(bool initialState, EventResetMode mode)
EventWaitHandle(SafeWaitHandle handle)
static OpenExistingResult OpenExistingWorker(string name, out EventWaitHandle result)
EventWaitHandle(bool initialState, EventResetMode mode, string? name, out bool createdNew)
void CreateEventCore(bool initialState, EventResetMode mode, string name, out bool createdNew)
static readonly IntPtr Zero