C# Class EpLibrary.cs.WorkerThreadInfinite

A class that implements infinite-looping Worker Thread Class.
Inheritance: BaseWorkerThread, IDisposable
显示文件 Open project: juhgiyo/EpLibrary.cs Class Usage Examples

Private Properties

Property Type Description
Dispose void

Public Methods

Method Description
Dispose ( ) : void
TerminateWorker ( int waitTimeInMilliSec = Timeout.Infinite ) : TerminateResult

Wait for worker thread to terminate, and if not terminated, then Terminate.

WorkerThreadInfinite ( ThreadLifePolicy policy ) : System

Default Constructor

WorkerThreadInfinite ( WorkerThreadInfinite b ) : System

Default copy constructor

Protected Methods

Method Description
execute ( ) : void

Actual infinite-looping Thread Code.

Private Methods

Method Description
Dispose ( bool isDisposing ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

TerminateWorker() public method

Wait for worker thread to terminate, and if not terminated, then Terminate.
public TerminateWorker ( int waitTimeInMilliSec = Timeout.Infinite ) : TerminateResult
waitTimeInMilliSec int the time-out interval, in milliseconds.
return TerminateResult

WorkerThreadInfinite() public method

Default Constructor
public WorkerThreadInfinite ( ThreadLifePolicy policy ) : System
policy ThreadLifePolicy the life policy of this worker thread.
return System

WorkerThreadInfinite() public method

Default copy constructor
public WorkerThreadInfinite ( WorkerThreadInfinite b ) : System
b WorkerThreadInfinite the object to copy from
return System

execute() protected method

Actual infinite-looping Thread Code.
protected execute ( ) : void
return void