C# Class Woopsa.CustomThreadPool

Inheritance: IDisposable
Datei anzeigen Open project: woopsa-protocol/Woopsa Class Usage Examples

Public Methods

Method Description
CustomThreadPool ( string name, int threadPoolSize = DefaultThreadPoolSize, ThreadPriority priority = ThreadPriority.Normal ) : System
Dispose ( ) : void
Join ( System.TimeSpan timeout ) : bool
Join ( ) : void
StartUserWorkItem ( WaitCallback callBack, System.TimeSpan timeout ) : bool
StartUserWorkItem ( WaitCallback callBack, object parameter = null ) : bool
StartUserWorkItem ( WaitCallback callBack, object parameter, System.TimeSpan timeout ) : bool
Terminate ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
GetNextIdleThread ( System.TimeSpan timeout ) : CustomThreadPoolThread
OnIdle ( object sender, EventArgs e ) : void

Method Details

CustomThreadPool() public method

public CustomThreadPool ( string name, int threadPoolSize = DefaultThreadPoolSize, ThreadPriority priority = ThreadPriority.Normal ) : System
name string
threadPoolSize int
priority ThreadPriority
return System

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Join() public method

public Join ( System.TimeSpan timeout ) : bool
timeout System.TimeSpan
return bool

Join() public method

public Join ( ) : void
return void

StartUserWorkItem() public method

public StartUserWorkItem ( WaitCallback callBack, System.TimeSpan timeout ) : bool
callBack WaitCallback
timeout System.TimeSpan
return bool

StartUserWorkItem() public method

public StartUserWorkItem ( WaitCallback callBack, object parameter = null ) : bool
callBack WaitCallback
parameter object
return bool

StartUserWorkItem() public method

public StartUserWorkItem ( WaitCallback callBack, object parameter, System.TimeSpan timeout ) : bool
callBack WaitCallback
parameter object
timeout System.TimeSpan
return bool

Terminate() public method

public Terminate ( ) : void
return void