Свойство | Тип | Описание | |
---|---|---|---|
m_callBackFunc | Action |
||
m_callBackLock | Object | ||
m_jobProcessor | EpLibrary.cs.BaseJobProcessor | ||
m_lifePolicy | ThreadLifePolicy | ||
m_workPool | JobScheduleQueue |
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
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 | |
Результат | System |
public BaseWorkerThread ( ThreadLifePolicy policy ) : System | ||
policy | ThreadLifePolicy | the life policy of this worker thread. |
Результат | System |
public Erase ( BaseJob work ) : bool | ||
work | BaseJob | the work to erase from the work pool |
Результат | bool |
public GetJobProcessor ( ) : EpLibrary.cs.BaseJobProcessor | ||
Результат | EpLibrary.cs.BaseJobProcessor |
public GetLifePolicy ( ) : ThreadLifePolicy | ||
Результат | ThreadLifePolicy |
public Push ( BaseJob work ) : void | ||
work | BaseJob | the new work to put into the work pool. |
Результат | void |
public SetCallBackClass ( Action |
||
callBackFunc | Action |
the call back function. |
Результат | void |
public SetJobProcessor ( EpLibrary.cs.BaseJobProcessor jobProcessor ) : void | ||
jobProcessor | EpLibrary.cs.BaseJobProcessor | set new Job Processor for this thread. |
Результат | void |
public TerminateWorker ( int waitTimeInMilliSec = Timeout.Infinite ) : TerminateResult | ||
waitTimeInMilliSec | int | the time-out interval, in milliseconds. |
Результат | TerminateResult |
protected BaseJobProcessor,EpLibrary.cs m_jobProcessor | ||
Результат | EpLibrary.cs.BaseJobProcessor |