All Classes Namespaces Functions Variables Groups Pages
QC_ThreadPool.dox.h
namespace Qore::Thread {
class ThreadPool {
public:
constructor(int max = 0, int minidle = 0, int maxidle = 0, timeout release_ms = 5s);
public:
destructor();
public:
stop();
public:
stopWait();
public:
submit(code task, *code cancel);
public:
string toString();
};
};
Qore::max
any max(list l)
Returns the maximum value in a list.
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::Thread::ThreadPool
This class defines a thread pool that grows and shrinks dynamically within user-defined limits accord...
Definition: QC_ThreadPool.dox.h:41
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::stop
stop()
stops the thread pool and returns immediately; after this method has been executed once no more tasks...
Qore::Thread::ThreadPool::stopWait
stopWait()
stops the thread pool and does not return until all child threads have also been stopped; after this ...
Qore::Thread::ThreadPool::submit
submit(code task, *code cancel)
submit a task to the pool
Qore::Thread::ThreadPool::toString
string toString()
returns a description of the ThreadPool