Beispiel #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;
     }
 }
 /// <summary>
 /// Set new Job Processor.
 /// </summary>
 /// <param name="jobProcessor">set new Job Processor for this thread.</param>
 public void SetJobProcessor(BaseJobProcessor jobProcessor)
 {
     m_jobProcessor = jobProcessor;
 }
Beispiel #3
0
 /// <summary>
 /// Set new Job Processor.
 /// </summary>
 /// <param name="jobProcessor">set new Job Processor for this thread.</param>
 public void SetJobProcessor(BaseJobProcessor jobProcessor)
 {
     m_jobProcessor = jobProcessor;
 }
 /// <summary>
 /// Default copy constructor
 /// </summary>
 /// <param name="b">the object to copy from</param>
 protected BaseJobProcessor(BaseJobProcessor b)
 {
     m_status = b.m_status;
 }
        /// <summary>
        /// Default copy constructor
        /// </summary>
        /// <param name="b">the object to copy from</param>
		protected BaseJobProcessor(BaseJobProcessor b)
		{
			m_status=b.m_status;
		}
        /// <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;
            }
            
        }