/// <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)); }
/// <summary> /// Post a message to the worker thread. /// </summary> public void PostToWorker(KThreadMsg m) { lock (MsgMutex) { MsgQueue.Enqueue(m); WakeUp(); } }