Exemplo n.º 1
0
        public void ProcessJobs()
        {
            while (true)
            {
                while (JobList.Count != 0)
                {
                    IJob jobToProcess = JobList.Dequeue();
                    jobToProcess.Start();
                    JobListFinished.Enqueue(jobToProcess);
                }

                waitForSomethingTodo.WaitOne();
            }
        }