 |
Qore Programming Language Reference Manual
0.9.4.3
|
61 constructor(
int max = 0,
int minidle = 0,
int maxidle = 0, timeout release_ms = 5s);
110 submit(code task, *code cancel);
stopWait()
stops the thread pool and does not return until all child threads have also been stopped; after this ...
auto max(list< auto > l)
Returns the maximum value in a list.
submit(code task, *code cancel)
submit a task to the pool
This class defines a thread pool that grows and shrinks dynamically within user-defined limits accord...
Definition: QC_ThreadPool.dox.h:43
destructor()
destroys the pool; any task threads are detached and pending tasks not yet executed are canceled; to ...
constructor(int max=0, int minidle=0, int maxidle=0, timeout release_ms=5s)
creates the pool with the given parameters; idle threads are started immediately if necessary
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
string toString()
returns a description of the ThreadPool
stop()
stops the thread pool and returns immediately; after this method has been executed once no more tasks...