예제 #1
0
 static void ScheduleCallback(Action <object> callback, object state, bool lowPriority)
 {
     Fx.Assert(callback != null, "Cannot schedule a null callback");
     if (lowPriority)
     {
         IOThreadScheduler.ScheduleCallbackLowPriNoFlow(callback, state);
     }
     else
     {
         IOThreadScheduler.ScheduleCallbackNoFlow(callback, state);
     }
 }
예제 #2
0
 public override void Post(SendOrPostCallback d, object state)
 {
     IOThreadScheduler.ScheduleCallbackNoFlow(
         (s) => { d(s); }, state);
 }