A class that implements Base Worker Thread Class.
Inheritance: ThreadEx
コード例 #1
0
 /// <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;
     }
 }
コード例 #2
0
        /// <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;
            }
            
        }
コード例 #3
0
 /// <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);
コード例 #4
0
 /// <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);