Example #1
0
 /// <summary>
 /// Post a message to the UI thread from the context of the worker thread.
 /// </summary>
 protected void PostToUI(KThreadMsg m)
 {
     KBase.ExecInUI(new KBase.EmptyDelegate(m.Run));
 }
Example #2
0
 /// <summary>
 /// Post a message to the worker thread.
 /// </summary>
 public void PostToWorker(KThreadMsg m)
 {
     lock (MsgMutex)
     {
         MsgQueue.Enqueue(m);
         WakeUp();
     }
 }