private void CreateEventCore(bool initialState, EventResetMode mode, string name, out bool createdNew) { Debug.Assert(name == null); SafeWaitHandle = WaitSubsystem.NewEvent(initialState, mode); createdNew = true; }
private void CreateEventCore(bool initialState, EventResetMode mode, string?name, out bool createdNew) { if (name != null) { throw new PlatformNotSupportedException(SR.PlatformNotSupported_NamedSynchronizationPrimitives); } SafeWaitHandle = WaitSubsystem.NewEvent(initialState, mode); createdNew = true; }