/// <summary> /// Default copy constructor /// </summary> /// <param name="b">the object to copy from</param> public BaseWorkerThread(BaseWorkerThread b) : base(b) { lock (b.m_callBackLock) { m_lifePolicy = b.m_lifePolicy; m_callBackFunc = b.m_callBackFunc; m_jobProcessor = b.m_jobProcessor; m_workPool = b.m_workPool; } }
/// <summary> /// Default copy constructor /// </summary> /// <param name="b">the object to copy from</param> public BaseWorkerThread(BaseWorkerThread b):base(b) { lock(b.m_callBackLock) { m_lifePolicy=b.m_lifePolicy; m_callBackFunc = b.m_callBackFunc; m_jobProcessor=b.m_jobProcessor; m_workPool=b.m_workPool; } }
/// <summary> /// Process the job given, subclasses must implement this function. /// </summary> /// <param name="workerThread">The worker thread which called the DoJob.</param> /// <param name="data">The job given to this object.</param> public abstract void DoJob(BaseWorkerThread workerThread, BaseJob data);