ThreadPoolImpl

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
void GetAvailableThreads(int&, int&)Gets number of available threads.
static bool& GetInitialized()Gets initialization state singleton.
void GetMaxThreads(int&, int&)Gets maximal number of concurrent threads.
void GetMinThreads(int&, int&)Gets minimal number of threads being created by pool.
void JoinAll()Joins all owned threads. Waits infinitely.
bool QueueUserWorkItem(WaitCallback, const System::SharedPtr<System::Object>&)Adds work item to queue.
bool SetMaxThreads(int, int)Sets number of threads owned by pool.
bool 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