Esempio n. 1
0
 public CallBackEventQueue CloneEventWithDelay()
 {
     lock (obj)
     {
         var q = new CallBackEventQueue();
         foreach (var e in _queue)
         {
             if (e.Delay > 0 && e.Enabled)
             {
                 q.EnqueueNotSafe(e);
             }
         }
         return(q);
     }
 }
Esempio n. 2
0
 public CallBackEventQueue GetEventsWithNoDelay()
 {
     lock (obj)
     {
         var q = new CallBackEventQueue();
         foreach (var e in _queue)
         {
             if (e.Delay == 0 && e.Enabled)
             {
                 q.EnqueueNotSafe(e);
             }
         }
         return(q);
     }
 }