Qore Programming Language Reference Manual  0.9.4.3
QC_ThreadPool.dox.h
1 namespace Qore {
4 namespace Thread {
6 
43 class ThreadPool {
44 
45 public:
47 
61  constructor(int max = 0, int minidle = 0, int maxidle = 0, timeout release_ms = 5s);
62 
63 public:
65 
70  destructor();
71 
72 public:
74 
85  stop();
86 
87 public:
89 
98  stopWait();
99 
100 public:
102 
110  submit(code task, *code cancel);
111 
112 public:
114 
124 string toString();
125 };
126 }
127 }
Qore::Thread::ThreadPool::stopWait
stopWait()
stops the thread pool and does not return until all child threads have also been stopped; after this ...
Qore::max
auto max(list< auto > l)
Returns the maximum value in a list.
Qore::Thread::ThreadPool::submit
submit(code task, *code cancel)
submit a task to the pool
Qore::Thread::ThreadPool
This class defines a thread pool that grows and shrinks dynamically within user-defined limits accord...
Definition: QC_ThreadPool.dox.h:43
Qore::Thread::ThreadPool::destructor
destructor()
destroys the pool; any task threads are detached and pending tasks not yet executed are canceled; to ...
Qore::Thread::ThreadPool::constructor
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
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
Qore::Thread::ThreadPool::toString
string toString()
returns a description of the ThreadPool
Qore::Thread::ThreadPool::stop
stop()
stops the thread pool and returns immediately; after this method has been executed once no more tasks...