public void EnqueueObject(object o) { lock (this.locker) { ObjectsQueue.Enqueue(o); this.goSignal.Set(); } }
public object DequeueObject() { lock (this.locker) { if (ObjectsQueue.Count > 0) { return(ObjectsQueue.Dequeue()); } return(null); } }