示例#1
0
 private static void Store(CLZF instance)
 {
     lock (queue)
     {
         if (!queue.Contains(instance))
             queue.Enqueue(instance);
     }
 }
示例#2
0
 private static CLZF Fetch()
 {
     CLZF result;
     lock (queue)
     {
         if (queue.Count > 0)
         {
             result = queue.Dequeue();
         }
         else
         {
             result = new CLZF();
         }
     }
     return result;
 }