ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
Jam.Threading.TWorkerPoolConfig
Syntax
Pascal
TWorkerPoolConfig = record
  MaxCpuUsage: Integer;
  MaxRunningThreads: Integer;
  MinRunningThreads: Integer;
  ThreadPriority: TThreadPriority;
  OnAllWorkItemsFinished: TAllWorkItemsFinished;
end;

Record that allows to configure a newly created IWorkerThreadPool.

 
Name 
Description 
 
Only below this value for the cpu usage in percent new worker threads will be created. 
 
The maximum number of threads that this instance should use to perform its work.  
 
The minimum number of threads that this instance should use to perform its work.  
 
Optional event handler that is fired when all work items have finished their work. 
 
The priority that the threads in the pool have. 
 
Name 
Description 
 
Returns a record of this type that has all members initialized to its default values.