Merge pull request #575 from PepperDash/hotfix/fix-queue-priority

Set default queue thread priority to medium
This commit is contained in:
Andrew Welker
2021-01-27 12:04:29 -07:00
committed by GitHub

View File

@@ -28,7 +28,7 @@ namespace PepperDash_Essentials_Core.Queues
/// </summary> /// </summary>
/// <param name="key"></param> /// <param name="key"></param>
public GenericQueue(string key) public GenericQueue(string key)
: this(key, Thread.eThreadPriority.NotSet) : this(key, Thread.eThreadPriority.MediumPriority)
{ {
} }
@@ -37,6 +37,7 @@ namespace PepperDash_Essentials_Core.Queues
/// Constructor for generic queue with no pacing /// Constructor for generic queue with no pacing
/// </summary> /// </summary>
/// <param name="key">Key</param> /// <param name="key">Key</param>
/// <param name="priority"></param>
public GenericQueue(string key, Thread.eThreadPriority priority) public GenericQueue(string key, Thread.eThreadPriority priority)
{ {
_key = key; _key = key;