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