Merge pull request #572 from PepperDash/feature/genericqueue-upgrades

Sets the queue size to 25
This commit is contained in:
Andrew Welker
2021-01-26 13:11:37 -07:00
committed by GitHub

View File

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