Exemplo n.º 1
0
        private void CreateEventCore(bool initialState, EventResetMode mode, string name, out bool createdNew)
        {
            Debug.Assert(name == null);

            SafeWaitHandle = WaitSubsystem.NewEvent(initialState, mode);
            createdNew     = true;
        }
Exemplo n.º 2
0
        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;
        }