Commits

Anonymous committed 1262f9f

Remove yields. It goes faster, but now produces faster than it consumes

  • Participants
  • Parent commits 09922c5

Comments (0)

Files changed (1)

ConsoleApplication2/Program.cs

             long number = 0;
             while (true)
             {
-                Thread.Yield();
                 enqueuer.Enqueue(number++);
             }
         }
             // Spin waiting for the queue to fill up
             while (m_QueueTail.Next == null)
             {
-                Thread.Yield();
             }
 
             // Now there's something in the queue