C# Class Amib.Threading.SmartThreadPool

Smart thread pool class.
Inheritance: IWorkItemsGroup, IDisposable
Afficher le fichier Open project: amibar/SmartThreadPool Class Usage Examples

Méthodes publiques

Свойство Type Description
DefaultMaxQueueLength int?
DefaultMaxStackSize int?
DefaultPerformanceCounterInstanceName string
DefaultPostExecuteWorkItemCallback PostExecuteWorkItemCallback

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
SmartThreadPool ( ) : System

Constructor

SmartThreadPool ( STPStartInfo stpStartInfo ) : System

Constructor

SmartThreadPool ( bool startSuspended ) : System

Constructor

SmartThreadPool ( int idleTimeout ) : System

Constructor

SmartThreadPool ( int idleTimeout, int maxWorkerThreads ) : System

Constructor

SmartThreadPool ( int idleTimeout, int maxWorkerThreads, int minWorkerThreads ) : System

Constructor

Method Details

SmartThreadPool() public méthode

Constructor
public SmartThreadPool ( ) : System
Résultat System

SmartThreadPool() public méthode

Constructor
public SmartThreadPool ( STPStartInfo stpStartInfo ) : System
stpStartInfo STPStartInfo A SmartThreadPool configuration that overrides the default behavior
Résultat System

SmartThreadPool() public méthode

Constructor
public SmartThreadPool ( bool startSuspended ) : System
startSuspended bool Set it to True to start thread pool in suspended mode; Explicit call to Start() will be needed to start the Thread pool.
Résultat System

SmartThreadPool() public méthode

Constructor
public SmartThreadPool ( int idleTimeout ) : System
idleTimeout int Idle timeout in milliseconds
Résultat System

SmartThreadPool() public méthode

Constructor
public SmartThreadPool ( int idleTimeout, int maxWorkerThreads ) : System
idleTimeout int Idle timeout in milliseconds
maxWorkerThreads int Upper limit of threads in the pool
Résultat System

SmartThreadPool() public méthode

Constructor
public SmartThreadPool ( int idleTimeout, int maxWorkerThreads, int minWorkerThreads ) : System
idleTimeout int Idle timeout in milliseconds
maxWorkerThreads int Upper limit of threads in the pool
minWorkerThreads int Lower limit of threads in the pool
Résultat System

Property Details

DefaultMaxQueueLength public_oe static_oe property

The default Max Queue Length (null).
public static int? DefaultMaxQueueLength
Résultat int?

DefaultMaxStackSize public_oe static_oe property

The default Max Stack Size. (null)
public static int? DefaultMaxStackSize
Résultat int?

DefaultPerformanceCounterInstanceName public_oe static_oe property

The default name to use for the performance counters instance. (null)
public static string DefaultPerformanceCounterInstanceName
Résultat string

DefaultPostExecuteWorkItemCallback public_oe static_oe property

The default post execute method to run. (None) When null it means not to call it.
public static PostExecuteWorkItemCallback DefaultPostExecuteWorkItemCallback
Résultat PostExecuteWorkItemCallback