ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
Jam.Threading.TWorkerPool.CreateInstance
Syntax
Pascal
class function CreateInstance(pAllWorkItemsFinished: TAllWorkItemsFinished = nil): IWorkerThreadPool; overload;
Parameters 
Description 
pAllWorkItemsFinished: TAllWorkItemsFinished = nil 
Event handler that is fired when all work items have finished their work. 
pMaxRunningThreads 
The maximum number of working threads that should be used. The pool will adapt the actually used number of threads automatically to the workload and the cpu usage.  

A new IWorkerThreadPool instance.

Creates and returns a new threadpool instance for workitems.