public static WorkerThreadInfo Create(WorkerThread worker, String name, String description)
 {
     WorkerThreadInfo job = new WorkerThreadInfo(name, description);
     job.m_Worker = worker;
     JobInfo.AddJob(job);
     return job;
 }
예제 #2
0
        public WorkerThread(String name, String description = "")
        {
            State        = WorkState.NotStarted;
            mThread      = new Thread(ThreadHull);
            mThread.Name = name;

            m_JobInformation = WorkerThreadInfo.Create(this, name, description);
        }
예제 #3
0
        public static WorkerThreadInfo Create(WorkerThread worker, String name, String description)
        {
            WorkerThreadInfo job = new WorkerThreadInfo(name, description);

            job.m_Worker = worker;
            JobInfo.AddJob(job);
            return(job);
        }
 public WorkerThread(String name, String description = "")
 {
     State            = WorkState.NotStarted;
     mThread          = new Thread(ThreadHull);
     mThread.Name     = name;
     WakeupEvent      = new AutoResetEvent(false);
     m_JobInformation = WorkerThreadInfo.Create(this, name, description);
 }