Exemplo n.º 1
0
        /// <summary>
        /// See ECMA specs.
        /// </summary>
        public AutoResetEvent(bool initialState)
        {
            IntPtr handle;

            handle = WaitEvent.InternalCreateEvent(false, initialState);

            SetHandle(handle);
        }
Exemplo n.º 2
0
 /// <summary>
 /// See ECMA specs.
 /// </summary>
 public bool Reset()
 {
     if (Handle == IntPtr.Zero)
     {
         throw new ObjectDisposedException(_("AutoResetEvent"));
     }
     return(WaitEvent.InternalResetEvent(Handle));
 }
Exemplo n.º 3
0
        /// <summary>
        /// See ECMA specs.
        /// </summary>
        public ManualResetEvent(bool initialState)
        {
            IntPtr handle;

            handle = WaitEvent.InternalCreateEvent(true, initialState);

            SetHandle(handle);
        }