code_junkie

Why is there no generic synchronized queue in .NET?

Nov 11th, 2011
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. if (queue.Count > 0) {
  2. object obj = null;
  3. try {
  4. obj = queue.Dequeue();
  5.  
  6. private static object lockObjForQueueOperations = new object();
  7.  
  8. ConcurrentQueue<T>
Add Comment
Please, Sign In to add comment