C# Класс System.Threading.ThreadPool

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetAvailableThreads ( int &workerThreads, int &completionPortThreads ) : void
GetMaxThreads ( int &workerThreads, int &completionPortThreads ) : void
GetMinThreads ( int &workerThreads, int &completionPortThreads ) : void
QueueUserWorkItem ( System callBack ) : bool
QueueUserWorkItem ( System callBack, object state ) : bool
RegisterWaitForSingleObject ( System waitObject, System callBack, object state, System timeout, bool executeOnlyOnce ) : System.Threading.RegisteredWaitHandle
RegisterWaitForSingleObject ( System waitObject, System callBack, object state, int millisecondsTimeOutInterval, bool executeOnlyOnce ) : System.Threading.RegisteredWaitHandle
RegisterWaitForSingleObject ( System waitObject, System callBack, object state, long millisecondsTimeOutInterval, bool executeOnlyOnce ) : System.Threading.RegisteredWaitHandle
SetMaxThreads ( int workerThreads, int completionPortThreads ) : bool
SetMinThreads ( int workerThreads, int completionPortThreads ) : bool
UnsafeQueueUserWorkItem ( System callBack, object state ) : bool
UnsafeRegisterWaitForSingleObject ( System waitObject, System callBack, object state, System timeout, bool executeOnlyOnce ) : System.Threading.RegisteredWaitHandle
UnsafeRegisterWaitForSingleObject ( System waitObject, System callBack, object state, int millisecondsTimeOutInterval, bool executeOnlyOnce ) : System.Threading.RegisteredWaitHandle
UnsafeRegisterWaitForSingleObject ( System waitObject, System callBack, object state, long millisecondsTimeOutInterval, bool executeOnlyOnce ) : System.Threading.RegisteredWaitHandle

Приватные методы

Метод Описание
BindHandle ( System osHandle ) : bool
RegisterWaitForSingleObject ( System waitObject, System callBack, object state, uint millisecondsTimeOutInterval, bool executeOnlyOnce ) : System.Threading.RegisteredWaitHandle
UnsafeQueueNativeOverlapped ( System overlapped ) : bool
UnsafeRegisterWaitForSingleObject ( System waitObject, System callBack, object state, uint millisecondsTimeOutInterval, bool executeOnlyOnce ) : System.Threading.RegisteredWaitHandle

Описание методов

GetAvailableThreads() публичный статический Метод

public static GetAvailableThreads ( int &workerThreads, int &completionPortThreads ) : void
workerThreads int
completionPortThreads int
Результат void

GetMaxThreads() публичный статический Метод

public static GetMaxThreads ( int &workerThreads, int &completionPortThreads ) : void
workerThreads int
completionPortThreads int
Результат void

GetMinThreads() публичный статический Метод

public static GetMinThreads ( int &workerThreads, int &completionPortThreads ) : void
workerThreads int
completionPortThreads int
Результат void

QueueUserWorkItem() публичный статический Метод

public static QueueUserWorkItem ( System callBack ) : bool
callBack System
Результат bool

QueueUserWorkItem() публичный статический Метод

public static QueueUserWorkItem ( System callBack, object state ) : bool
callBack System
state object
Результат bool

RegisterWaitForSingleObject() публичный статический Метод

public static RegisterWaitForSingleObject ( System waitObject, System callBack, object state, System timeout, bool executeOnlyOnce ) : System.Threading.RegisteredWaitHandle
waitObject System
callBack System
state object
timeout System
executeOnlyOnce bool
Результат System.Threading.RegisteredWaitHandle

RegisterWaitForSingleObject() публичный статический Метод

public static RegisterWaitForSingleObject ( System waitObject, System callBack, object state, int millisecondsTimeOutInterval, bool executeOnlyOnce ) : System.Threading.RegisteredWaitHandle
waitObject System
callBack System
state object
millisecondsTimeOutInterval int
executeOnlyOnce bool
Результат System.Threading.RegisteredWaitHandle

RegisterWaitForSingleObject() публичный статический Метод

public static RegisterWaitForSingleObject ( System waitObject, System callBack, object state, long millisecondsTimeOutInterval, bool executeOnlyOnce ) : System.Threading.RegisteredWaitHandle
waitObject System
callBack System
state object
millisecondsTimeOutInterval long
executeOnlyOnce bool
Результат System.Threading.RegisteredWaitHandle

SetMaxThreads() публичный статический Метод

public static SetMaxThreads ( int workerThreads, int completionPortThreads ) : bool
workerThreads int
completionPortThreads int
Результат bool

SetMinThreads() публичный статический Метод

public static SetMinThreads ( int workerThreads, int completionPortThreads ) : bool
workerThreads int
completionPortThreads int
Результат bool

UnsafeQueueUserWorkItem() публичный статический Метод

public static UnsafeQueueUserWorkItem ( System callBack, object state ) : bool
callBack System
state object
Результат bool

UnsafeRegisterWaitForSingleObject() публичный статический Метод

public static UnsafeRegisterWaitForSingleObject ( System waitObject, System callBack, object state, System timeout, bool executeOnlyOnce ) : System.Threading.RegisteredWaitHandle
waitObject System
callBack System
state object
timeout System
executeOnlyOnce bool
Результат System.Threading.RegisteredWaitHandle

UnsafeRegisterWaitForSingleObject() публичный статический Метод

public static UnsafeRegisterWaitForSingleObject ( System waitObject, System callBack, object state, int millisecondsTimeOutInterval, bool executeOnlyOnce ) : System.Threading.RegisteredWaitHandle
waitObject System
callBack System
state object
millisecondsTimeOutInterval int
executeOnlyOnce bool
Результат System.Threading.RegisteredWaitHandle

UnsafeRegisterWaitForSingleObject() публичный статический Метод

public static UnsafeRegisterWaitForSingleObject ( System waitObject, System callBack, object state, long millisecondsTimeOutInterval, bool executeOnlyOnce ) : System.Threading.RegisteredWaitHandle
waitObject System
callBack System
state object
millisecondsTimeOutInterval long
executeOnlyOnce bool
Результат System.Threading.RegisteredWaitHandle