56 references to SpinOnce
mscorlib (39)
system\Collections\Concurrent\ConcurrentQueue.cs (12)
286spin.SpinOnce(); 376spin.SpinOnce(); 512spin.SpinOnce(); 527spin.SpinOnce(); 542spin.SpinOnce(); 557spin.SpinOnce(); 585spin.SpinOnce(); 838spinLocal.SpinOnce(); 864spinLocal.SpinOnce(); 874spin.SpinOnce(); 897spin.SpinOnce(); 916spin.SpinOnce();
system\Collections\Concurrent\ConcurrentStack.cs (2)
455spin.SpinOnce(); 722spin.SpinOnce();
system\collections\concurrent\PartitionerStatic.cs (1)
808while( m_activeCopiers > 0) sw.SpinOnce();
system\threading\CancellationTokenSource.cs (1)
946sw.SpinOnce(); //spin as we assume callback execution is fast and that this situation is rare.
system\threading\CountdownEvent.cs (2)
263spin.SpinOnce(); 377spin.SpinOnce();
system\threading\ManualResetEventSlim.cs (1)
787sw.SpinOnce();
system\threading\SemaphoreSlim.cs (1)
349spin.SpinOnce();
system\threading\SpinLock.cs (2)
505spinner.SpinOnce(); 536spinner.SpinOnce();
system\threading\SpinWait.cs (9)
91/// Gets the number of times <see cref="SpinOnce"/> has been called on this instance. 99/// Gets whether the next call to <see cref="SpinOnce"/> will yield the processor, triggering a 102/// <value>Whether the next call to <see cref="SpinOnce"/> will yield the processor, triggering a 105/// On a single-CPU machine, <see cref="SpinOnce"/> always yields the processor. On machines with 106/// multiple CPUs, <see cref="SpinOnce"/> may yield after an unspecified number of calls. 118/// <see cref="SpinOnce"/> has been called thus far on this instance. 185/// This makes <see cref="SpinOnce"/> and <see cref="NextSpinWillYield"/> behave as though no calls 186/// to <see cref="SpinOnce"/> had been issued on this instance. If a <see cref="SpinWait"/> instance 271spinner.SpinOnce();
system\threading\Tasks\ParallelLoopState.cs (3)
228wait.SpinOnce(); 271wait.SpinOnce(); 446sw.SpinOnce();
system\threading\Tasks\Task.cs (3)
824sw.SpinOnce(); 839sw.SpinOnce(); 872sw.SpinOnce();
system\threading\Tasks\TaskCompletionSource.cs (1)
139sw.SpinOnce();
system\threading\threadpool.cs (1)
538spinner.SpinOnce();
System (12)
sys\system\collections\concurrent\BlockingCollection.cs (5)
473while (m_currentAdders != COMPLETE_ADDING_ON_MASK) spinner.SpinOnce(); 481spinner.SpinOnce(); 1505while (m_currentAdders != COMPLETE_ADDING_ON_MASK) spinner.SpinOnce(); 1512while (m_currentAdders != COMPLETE_ADDING_ON_MASK) spinner.SpinOnce(); 1525spinner.SpinOnce();
sys\system\collections\concurrent\ConcurrentBag.cs (2)
446spinner.SpinOnce(); 854spinner.SpinOnce();
sys\system\threading\Barrier.cs (5)
408spinner.SpinOnce(); 493spinner.SpinOnce(); 697spinner.SpinOnce(); 765spinner.SpinOnce(); 879spinner.SpinOnce();
System.Core (5)
System\IO\Pipes\Pipe.cs (5)
1193sw.SpinOnce(); 1220sw.SpinOnce(); 1310sw.SpinOnce(); 1319sw.SpinOnce(); 1345sw.SpinOnce();