C# Class System.Threading.ThreadPool

Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

GetAvailableThreads() public static méthode

public static GetAvailableThreads ( int &workerThreads, int &completionPortThreads ) : void
workerThreads int
completionPortThreads int
Résultat void

GetMaxThreads() public static méthode

public static GetMaxThreads ( int &workerThreads, int &completionPortThreads ) : void
workerThreads int
completionPortThreads int
Résultat void

GetMinThreads() public static méthode

public static GetMinThreads ( int &workerThreads, int &completionPortThreads ) : void
workerThreads int
completionPortThreads int
Résultat void

QueueUserWorkItem() public static méthode

public static QueueUserWorkItem ( System callBack ) : bool
callBack System
Résultat bool

QueueUserWorkItem() public static méthode

public static QueueUserWorkItem ( System callBack, object state ) : bool
callBack System
state object
Résultat bool

RegisterWaitForSingleObject() public static méthode

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
Résultat System.Threading.RegisteredWaitHandle

RegisterWaitForSingleObject() public static méthode

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
Résultat System.Threading.RegisteredWaitHandle

RegisterWaitForSingleObject() public static méthode

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
Résultat System.Threading.RegisteredWaitHandle

SetMaxThreads() public static méthode

public static SetMaxThreads ( int workerThreads, int completionPortThreads ) : bool
workerThreads int
completionPortThreads int
Résultat bool

SetMinThreads() public static méthode

public static SetMinThreads ( int workerThreads, int completionPortThreads ) : bool
workerThreads int
completionPortThreads int
Résultat bool

UnsafeQueueUserWorkItem() public static méthode

public static UnsafeQueueUserWorkItem ( System callBack, object state ) : bool
callBack System
state object
Résultat bool

UnsafeRegisterWaitForSingleObject() public static méthode

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
Résultat System.Threading.RegisteredWaitHandle

UnsafeRegisterWaitForSingleObject() public static méthode

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
Résultat System.Threading.RegisteredWaitHandle

UnsafeRegisterWaitForSingleObject() public static méthode

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
Résultat System.Threading.RegisteredWaitHandle