示例#1
0
        public void Enqueue(T obj)
        {
            if (bWritingQueueA)
            {
                QueueA.Enqueue(obj);
            }
            else
            {
                QueueB.Enqueue(obj);
            }

            if (WaitForMsgEvent.SpinCount > 0)
            {
                WaitForMsgEvent.Set();
            }
        }
示例#2
0
 public void ReleaseBlocking()
 {
     WaitForMsgEvent.Set();
 }