C# 클래스 EpLibrary.cs.BaseWorkerThread

A class that implements Base Worker Thread Class.
상속: ThreadEx
파일 보기 프로젝트 열기: juhgiyo/EpLibrary.cs 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_callBackFunc Action
m_callBackLock Object
m_jobProcessor EpLibrary.cs.BaseJobProcessor
m_lifePolicy ThreadLifePolicy
m_workPool JobScheduleQueue

공개 메소드들

메소드 설명
BaseWorkerThread ( BaseWorkerThread b ) : System

Default copy constructor

BaseWorkerThread ( ThreadLifePolicy policy ) : System

Default Constructor

Erase ( BaseJob work ) : bool

Erase the given work from the work pool.

Front ( ) : BaseJob

Get First Job in the Job Queue.

GetJobCount ( ) : int

Get job count in work pool.

GetJobProcessor ( ) : EpLibrary.cs.BaseJobProcessor

Get Job Processor.

GetLifePolicy ( ) : ThreadLifePolicy

Return the life policy of this worker thread.

Pop ( ) : BaseJob

Pop a work from the work pool.

Push ( BaseJob work ) : void

Push in the new work to the work pool.

SetCallBackClass ( Action callBackFunc ) : void

Set call back class to call when work is done.

SetJobProcessor ( EpLibrary.cs.BaseJobProcessor jobProcessor ) : void

Set new Job Processor.

TerminateWorker ( int waitTimeInMilliSec = Timeout.Infinite ) : TerminateResult

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

보호된 메소드들

메소드 설명
callCallBack ( ) : void

Call the Call Back Class if callback class is assigned.

execute ( ) : void

Pure Worker Thread Code.

메소드 상세

BaseWorkerThread() 공개 메소드

Default copy constructor
public BaseWorkerThread ( BaseWorkerThread b ) : System
b BaseWorkerThread the object to copy from
리턴 System

BaseWorkerThread() 공개 메소드

Default Constructor
public BaseWorkerThread ( ThreadLifePolicy policy ) : System
policy ThreadLifePolicy the life policy of this worker thread.
리턴 System

Erase() 공개 메소드

Erase the given work from the work pool.
public Erase ( BaseJob work ) : bool
work BaseJob the work to erase from the work pool
리턴 bool

Front() 공개 메소드

Get First Job in the Job Queue.
public Front ( ) : BaseJob
리턴 BaseJob

GetJobCount() 공개 메소드

Get job count in work pool.
public GetJobCount ( ) : int
리턴 int

GetJobProcessor() 공개 메소드

Get Job Processor.
public GetJobProcessor ( ) : EpLibrary.cs.BaseJobProcessor
리턴 EpLibrary.cs.BaseJobProcessor

GetLifePolicy() 공개 메소드

Return the life policy of this worker thread.
public GetLifePolicy ( ) : ThreadLifePolicy
리턴 ThreadLifePolicy

Pop() 공개 메소드

Pop a work from the work pool.
public Pop ( ) : BaseJob
리턴 BaseJob

Push() 공개 메소드

Push in the new work to the work pool.
public Push ( BaseJob work ) : void
work BaseJob the new work to put into the work pool.
리턴 void

SetCallBackClass() 공개 메소드

Set call back class to call when work is done.
public SetCallBackClass ( Action callBackFunc ) : void
callBackFunc Action the call back function.
리턴 void

SetJobProcessor() 공개 메소드

Set new Job Processor.
public SetJobProcessor ( EpLibrary.cs.BaseJobProcessor jobProcessor ) : void
jobProcessor EpLibrary.cs.BaseJobProcessor set new Job Processor for this thread.
리턴 void

TerminateWorker() 공개 메소드

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.
리턴 TerminateResult

callCallBack() 보호된 메소드

Call the Call Back Class if callback class is assigned.
protected callCallBack ( ) : void
리턴 void

execute() 보호된 추상적인 메소드

Pure Worker Thread Code.
protected abstract execute ( ) : void
리턴 void

프로퍼티 상세

m_callBackFunc 보호되어 있는 프로퍼티

the call back class
protected Action m_callBackFunc
리턴 Action

m_callBackLock 보호되어 있는 프로퍼티

callback Lock
protected Object m_callBackLock
리턴 Object

m_jobProcessor 보호되어 있는 프로퍼티

Job Processor
protected BaseJobProcessor,EpLibrary.cs m_jobProcessor
리턴 EpLibrary.cs.BaseJobProcessor

m_lifePolicy 보호되어 있는 프로퍼티

the life policy of the thread
protected ThreadLifePolicy m_lifePolicy
리턴 ThreadLifePolicy

m_workPool 보호되어 있는 프로퍼티

the work list
protected JobScheduleQueue m_workPool
리턴 JobScheduleQueue