Property | Type | Description | |
---|---|---|---|
m_callBackFunc | Action |
||
m_callBackLock | Object | ||
m_jobProcessor | EpLibrary.cs.BaseJobProcessor | ||
m_lifePolicy | ThreadLifePolicy | ||
m_workPool | JobScheduleQueue |
Method | Description | |
---|---|---|
BaseWorkerThread ( |
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 |
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.
|
Method | Description | |
---|---|---|
callCallBack ( ) : void |
Call the Call Back Class if callback class is assigned.
|
|
execute ( ) : void |
Pure Worker Thread Code.
|
public BaseWorkerThread ( |
||
b | the object to copy from | |
return | System |
public BaseWorkerThread ( ThreadLifePolicy policy ) : System | ||
policy | ThreadLifePolicy | the life policy of this worker thread. |
return | System |
public Erase ( BaseJob work ) : bool | ||
work | BaseJob | the work to erase from the work pool |
return | bool |
public GetJobProcessor ( ) : EpLibrary.cs.BaseJobProcessor | ||
return | EpLibrary.cs.BaseJobProcessor |
public Push ( BaseJob work ) : void | ||
work | BaseJob | the new work to put into the work pool. |
return | void |
public SetCallBackClass ( Action |
||
callBackFunc | Action |
the call back function. |
return | void |
public SetJobProcessor ( EpLibrary.cs.BaseJobProcessor jobProcessor ) : void | ||
jobProcessor | EpLibrary.cs.BaseJobProcessor | set new Job Processor for this thread. |
return | void |
public TerminateWorker ( int waitTimeInMilliSec = Timeout.Infinite ) : TerminateResult | ||
waitTimeInMilliSec | int | the time-out interval, in milliseconds. |
return | TerminateResult |
protected BaseJobProcessor,EpLibrary.cs m_jobProcessor | ||
return | EpLibrary.cs.BaseJobProcessor |