Qore Programming Language Reference Manual 1.18.0
Loading...
Searching...
No Matches
QC_ThreadPool.dox.h
1
2namespace Qore {
4namespace Thread {
6
44
45public:
47
61 constructor(int max = 0, int minidle = 0, int maxidle = 0, timeout release_ms = 5s);
62
63public:
65
71
72public:
74
89
90public:
92
103
104public:
106
114 submit(code task, *code cancel);
115
116public:
118
128string toString();
129};
130}
131}
This class defines a thread pool that grows and shrinks dynamically within user-defined limits accord...
Definition: QC_ThreadPool.dox.h:43
constructor(int max=0, int minidle=0, int maxidle=0, timeout release_ms=5s)
creates the pool with the given parameters; idle worker threads are started immediately if necessary
stopWait()
stops the thread pool and does not return until all submitted tasks have been executed and all worker...
submit(code task, *code cancel)
submit a task to the pool
string toString()
returns a description of the ThreadPool
destructor()
destroys the pool; any worker threads are detached and pending tasks not yet executed are canceled; t...
stop()
stops the thread pool and returns immediately; queued tasks are canceled
auto max(list< auto > l)
Returns the maximum value in a list.
Qore namespace.
Definition: QC_AbstractSmartLock.dox.h:2