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