C# Class Fanx.Util.ThreadPool

ThreadPool manages a pool of threads optimized for the Actor framework.
Exibir arquivo Open project: xored/f4

Public Methods

Method Description
ThreadPool ( int max ) : System.Collections

Construct with max number of threads.

dump ( Fan args ) : void
isDone ( ) : bool

Has all the work in this queue finished processing and all threads terminated.

isStopped ( ) : bool

Has this pool been stopped or killed.

Private Methods

Method Description
free ( Worker w ) : void
join ( long msTimeout ) : bool
kill ( ) : void
ready ( Worker w, bool idleTimeOver ) : Work
stop ( ) : void
submit ( Work work ) : void

Method Details

ThreadPool() public method

Construct with max number of threads.
public ThreadPool ( int max ) : System.Collections
max int
return System.Collections

dump() public method

public dump ( Fan args ) : void
args Fan
return void

isDone() public method

Has all the work in this queue finished processing and all threads terminated.
public isDone ( ) : bool
return bool

isStopped() public method

Has this pool been stopped or killed.
public isStopped ( ) : bool
return bool