Commits

alexdavies74  committed 1b9d16d Merge

Merge with default

  • Participants
  • Parent commits 2a42f8d, 1262f9f
  • Branches ConcurrentQueue

Comments (0)

Files changed (1)

File ConsoleApplication2/Program.cs

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