System::Threading::ThreadPoolImpl class

ThreadPoolImpl class

Thread pool internal data. This is a singleton type with memory management done by access function(s). You should never create instances of it directly.

class ThreadPoolImpl

Methods

MethodDescription
GetAvailableThreads(int&, int&)Gets number of available threads.
static GetInitialized()Gets initialization state singleton.
GetMaxThreads(int&, int&)Gets maximal number of concurrent threads.
GetMinThreads(int&, int&)Gets minimal number of threads being created by pool.
JoinAll()Joins all owned threads. Waits infinitely.
QueueUserWorkItem(WaitCallback, const System::SharedPtr<System::Object>&)Adds work item to queue.
SetMaxThreads(int, int)Sets number of threads owned by pool.
SetMinThreads(int, int)Sets minimal number of threads owned by pool.
ThreadPoolImpl()Constructor.
~ThreadPoolImpl()Destructor. Joins all threads if they were not terminated yet.

See Also