/// <summary> /// Create a new user object for a SynchronizedQueue /// </summary> /// <param name="synchronizedQueue">The queue for which the user is created</param> public AbstractQueueProducer(SynchronizedQueue <T> synchronizedQueue) { sq = synchronizedQueue; t = new Thread(threadMethod); t.Start(); sq.AddWorker(t, QueueUserType.PRODUCER); }
/// <summary> /// Create a new user object for a SynchronizedQueue /// </summary> /// <param name="synchronizedQueue">The queue for which the user is created</param> public AbstractQueueConsumer(SynchronizedQueue <T> synchronizedQueue) { sq = synchronizedQueue; t = new Thread(threadMethod); t.Start(); sq.AddWorker(t, QueueUserType.CONSUMER); }