Sets the queue size to 25

This commit is contained in:
Neil Dorin
2021-01-26 12:32:04 -07:00
parent 7ba0ecdf5c
commit b7d7196071

View File

@@ -40,7 +40,7 @@ namespace PepperDash_Essentials_Core.Queues
public GenericQueue(string key, Thread.eThreadPriority priority)
{
_key = key;
_queue = new CrestronQueue<IQueueMessage>();
_queue = new CrestronQueue<IQueueMessage>(25);
_worker = new Thread(ProcessQueue, null, Thread.eThreadStartOptions.Running)
{
Priority = priority