예제 #1
0
        public static void Set(this CEventHandle ceh)
        {
            var cev = ceh as CEvent;

            if (cev == null)
            {
                throw new ArgumentException("invalid CEventHandle", "ceh");
            }

            cev.Set();
        }
예제 #2
0
 public static bool WaitOne(this CEventHandle ceh, int timeout, bool exitContext)
 {
     return(ceh.Wait(timeout));
 }
예제 #3
0
 public static bool WaitOne(this CEventHandle ceh, TimeSpan timeout, bool exitContext)
 {
     return(ceh.Wait((int)timeout.TotalMilliseconds));
 }
예제 #4
0
 public static bool WaitOne(this CEventHandle ceh)
 {
     return(ceh.Wait());
 }