예제 #1
0
        /// <summary>
        /// See ECMA specs.
        /// </summary>
        public AutoResetEvent(bool initialState)
        {
            IntPtr handle;

            handle = WaitEvent.InternalCreateEvent(false, initialState);

            SetHandle(handle);
        }
예제 #2
0
        /// <summary>
        /// See ECMA specs.
        /// </summary>
        public ManualResetEvent(bool initialState)
        {
            IntPtr handle;

            handle = WaitEvent.InternalCreateEvent(true, initialState);

            SetHandle(handle);
        }