예제 #1
0
 /// <summary>
 ///   Runs @action on the thread that is processing events
 /// </summary>
 public void Invoke(Action action)
 {
     AddIdle(() => {
         action();
         return(false);
     });
     driver.Wakeup();
 }
예제 #2
0
 /// <summary>
 ///   Runs @action on the thread that is processing events
 /// </summary>
 public void Invoke(Action action)
 {
     AddIdle(action);
     driver.Wakeup();
 }
예제 #3
0
 /// <summary>
 ///   Stops the mainloop.
 /// </summary>
 public void Stop()
 {
     running = false;
     driver.Wakeup();
 }