System::Threading::ThreadPoolImpl kelas

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

Metode

MetodeDeskripsi
GetAvailableThreads(int&, int&)Mendapatkan jumlah thread yang tersedia.
static GetInitialized()Mendapatkan singleton status inisialisasi.
GetMaxThreads(int&, int&)Mendapatkan jumlah maksimal thread bersamaan.
GetMinThreads(int&, int&)Mendapatkan jumlah minimal thread yang dibuat oleh pool.
JoinAll()Menggabungkan semua thread yang dimiliki. Menunggu tanpa batas.
QueueUserWorkItem(WaitCallback, const System::SharedPtr<System::Object>&)Menambahkan item kerja ke antrean.
SetMaxThreads(int, int)Mengatur jumlah thread yang dimiliki oleh pool.
SetMinThreads(int, int)Mengatur jumlah minimal thread yang dimiliki oleh pool.
ThreadPoolImpl()Konstruktor.
~ThreadPoolImpl()Destructor. Menggabungkan semua thread jika belum dihentikan.

Lihat Juga