예제 #1
0
 /// <summary>
 /// Post a message to the worker thread.
 /// </summary>
 public void PostToWorker(WorkerThreadMsg m)
 {
     lock (MsgMutex)
     {
         MsgQueue.Enqueue(m);
         WakeUp();
     }
 }
예제 #2
0
파일: Thread.cs 프로젝트: tmbx/csutils
 /// <summary>
 /// Post a message to the worker thread.
 /// </summary>
 public void PostToWorker(WorkerThreadMsg m)
 {
     lock (MsgMutex)
     {
         MsgQueue.Enqueue(m);
         WakeUp();
     }
 }