示例#1
0
 public void PopProcessedJob()
 {
     lock (_processedJobLock)
     {
         ProcessedJobQueue.RemoveAt(0);
     }
 }
示例#2
0
        public object PeekProcessedJob()
        {
            lock (_processedJobLock)
            {
                var task = ProcessedJobQueue[0] as ACommandHandler;
                if (task == null)
                {
                    ProcessedJobQueue.RemoveAt(0);
                    return(null);
                }

                var job = task.CurrentJob();

                if (task.IsReady)
                {
                    ProcessedJobQueue.RemoveAt(0);
                }

                return(job);
            }
        }