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
commit e9a8e42525
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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