C# Class Fanx.Util.ThreadPool

ThreadPool manages a pool of threads optimized for the Actor framework.
Afficher le fichier Open project: xored/f4

Méthodes publiques

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

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

Construct with max number of threads.
public ThreadPool ( int max ) : System.Collections
max int
Résultat System.Collections

dump() public méthode

public dump ( Fan args ) : void
args Fan
Résultat void

isDone() public méthode

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

isStopped() public méthode

Has this pool been stopped or killed.
public isStopped ( ) : bool
Résultat bool