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; m_JobInformation = WorkerThreadInfo.Create(this, name, description); }
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); }