public void Enqueue(T obj) { if (bWritingQueueA) { QueueA.Enqueue(obj); } else { QueueB.Enqueue(obj); } if (WaitForMsgEvent.SpinCount > 0) { WaitForMsgEvent.Set(); } }
public void ReleaseBlocking() { WaitForMsgEvent.Set(); }