System::Threading::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

方法

方法描述
GetAvailableThreads(int&, int&)获取可用线程的数量。
static GetInitialized()获取初始化状态单例。
GetMaxThreads(int&, int&)获取最大并发线程数。
GetMinThreads(int&, int&)获取池正在创建的最小线程数。
JoinAll()加入所有拥有的线程。无限期等待。
QueueUserWorkItem(WaitCallback, const System::SharedPtr<System::Object>&)向队列添加工作项。
SetMaxThreads(int, int)设置池拥有的线程数量。
SetMinThreads(int, int)设置池拥有的最小线程数。
ThreadPoolImpl()构造函数。
~ThreadPoolImpl()析构函数。如果线程尚未终止,则加入所有线程。

另见