add suspendflow option to workmanager startthread

This commit is contained in:
UbitUmarov
2021-09-07 02:51:08 +01:00
parent b0814951bd
commit 1e4799604f
2 changed files with 61 additions and 10 deletions

View File

@@ -510,8 +510,8 @@ namespace Amib.Threading
IncrementWorkItemsCount();
workItem.CanceledSmartThreadPool = _canceledSmartThreadPool;
_workItemsQueue.EnqueueWorkItem(workItem);
workItem.WorkItemIsQueued();
_workItemsQueue.EnqueueWorkItem(workItem);
// If all the threads are busy then try to create a new one
if (_currentWorkItemsCount > _workerThreads.Count)