|
@@ -851,6 +851,8 @@ end;
|
|
|
|
|
|
function TFPCustomSimpleThreadPool.AddTask(aTask: TThreadPoolTask): Boolean;
|
|
function TFPCustomSimpleThreadPool.AddTask(aTask: TThreadPoolTask): Boolean;
|
|
begin
|
|
begin
|
|
|
|
+ While ThreadCount<MinThreads do
|
|
|
|
+ FTaskList.AddThread;
|
|
CheckQueuedTasks;
|
|
CheckQueuedTasks;
|
|
Result:=DoAddTask(aTask);
|
|
Result:=DoAddTask(aTask);
|
|
if (not Result) and QueueTasks then
|
|
if (not Result) and QueueTasks then
|