Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public override void Enqueue(IJob job) {
- lock (queue) {
- int index = 0;
- while (index < queue.Count && queue[index].DueDate >= job.DueDate)
- index++;
- queue.Insert(index, job);
- }
- sem.Release();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement