C# Класс Fanx.Util.ThreadPool

ThreadPool manages a pool of threads optimized for the Actor framework.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
free ( Worker w ) : void
join ( long msTimeout ) : bool
kill ( ) : void
ready ( Worker w, bool idleTimeOver ) : Work
stop ( ) : void
submit ( Work work ) : void

Описание методов

ThreadPool() публичный Метод

Construct with max number of threads.
public ThreadPool ( int max ) : System.Collections
max int
Результат System.Collections

dump() публичный Метод

public dump ( Fan args ) : void
args Fan
Результат void

isDone() публичный Метод

Has all the work in this queue finished processing and all threads terminated.
public isDone ( ) : bool
Результат bool

isStopped() публичный Метод

Has this pool been stopped or killed.
public isStopped ( ) : bool
Результат bool