C# Class Fanx.Util.ThreadPool.Worker

Worker is a reusable thread within the thread pool.
Show file Open project: xored/f4

Public Methods

Method Description
Worker ( ThreadPool pool, Work work ) : System.Collections

Construct with name and initial work to execute.

equals ( object o ) : bool

Equality must be reference for storage in a hash table.

run ( ) : void

A worker thread loops repeatly executing work until it times out.

Private Methods

Method Description
run ( Work work ) : void

Method Details

Worker() public method

Construct with name and initial work to execute.
public Worker ( ThreadPool pool, Work work ) : System.Collections
pool ThreadPool
work Work
return System.Collections

equals() public method

Equality must be reference for storage in a hash table.
public equals ( object o ) : bool
o object
return bool

run() public method

A worker thread loops repeatly executing work until it times out.
public run ( ) : void
return void