Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public override void Enqueue(IJob job) {
  2. lock (queue) {
  3. int index = 0;
  4. while (index < queue.Count && queue[index].DueDate >= job.DueDate)
  5. index++;
  6. queue.Insert(index, job);
  7. }
  8. sem.Release();
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement