68 references to SpinOnce
GenerateDocumentationAndConfigFiles (2)
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (1)
70spinWait.SpinOnce();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
116spin.SpinOnce();
Metrics (2)
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (1)
70spinWait.SpinOnce();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
116spin.SpinOnce();
Metrics.Legacy (2)
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (1)
70spinWait.SpinOnce();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
116spin.SpinOnce();
Microsoft.CodeAnalysis (1)
InternalUtilities\SingleInitNullable.cs (1)
70spinWait.SpinOnce();
Microsoft.CodeAnalysis.Analyzers (2)
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (1)
70spinWait.SpinOnce();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
116spin.SpinOnce();
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (1)
70spinWait.SpinOnce();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
116spin.SpinOnce();
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (1)
70spinWait.SpinOnce();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
116spin.SpinOnce();
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (1)
70spinWait.SpinOnce();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
116spin.SpinOnce();
Microsoft.CodeAnalysis.CSharp (1)
Symbols\SymbolCompletionState.cs (1)
133spinWait.SpinOnce();
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
116spin.SpinOnce();
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (2)
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (1)
70spinWait.SpinOnce();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
116spin.SpinOnce();
Microsoft.CodeAnalysis.PublicApiAnalyzers (2)
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (1)
70spinWait.SpinOnce();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
116spin.SpinOnce();
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (1)
70spinWait.SpinOnce();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
116spin.SpinOnce();
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (1)
70spinWait.SpinOnce();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
116spin.SpinOnce();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (1)
70spinWait.SpinOnce();
Roslyn.Diagnostics.Analyzers (2)
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (1)
70spinWait.SpinOnce();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
116spin.SpinOnce();
System.Collections.Concurrent (6)
System\Collections\Concurrent\BlockingCollection.cs (3)
452while (_currentAdders != COMPLETE_ADDING_ON_MASK) spinner.SpinOnce(); 1452while (_currentAdders != COMPLETE_ADDING_ON_MASK) spinner.SpinOnce(); 1459while (_currentAdders != COMPLETE_ADDING_ON_MASK) spinner.SpinOnce();
System\Collections\Concurrent\ConcurrentBag.cs (2)
634do { spinner.SpinOnce(); } 983spinner.SpinOnce();
System\Collections\Concurrent\PartitionerStatic.cs (1)
779while (_activeCopiers > 0) sw.SpinOnce();
System.IO.Pipes (1)
System\IO\Pipes\NamedPipeClientStream.cs (1)
157sw.SpinOnce();
System.IO.Ports (1)
System\IO\Ports\SerialStream.Unix.cs (1)
406sw.SpinOnce();
System.Net.HttpListener (1)
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (1)
479sw.SpinOnce();
System.Net.Requests (1)
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (1)
479sw.SpinOnce();
System.Net.Sockets (1)
System\Net\Sockets\SafeSocketHandle.cs (1)
118sw.SpinOnce();
System.Private.CoreLib (21)
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (2)
347spinner.SpinOnce(); 535spinner.SpinOnce();
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (1)
667spin.SpinOnce();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.Threads.cs (1)
48sw.SpinOnce();
src\libraries\System.Private.CoreLib\src\System\Lazy.cs (1)
387spinWait.SpinOnce();
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (2)
1146sw.SpinOnce(); // spin, as we assume callback execution is fast and that this situation is rare. 1179do { sw.SpinOnce(); } while (Interlocked.Exchange(ref value, true));
src\libraries\System.Private.CoreLib\src\System\Threading\SpinLock.cs (2)
400spinner.SpinOnce(); 428spinner.SpinOnce();
src\libraries\System.Private.CoreLib\src\System\Threading\SpinWait.cs (10)
98/// Gets the number of times <see cref="SpinOnce()"/> has been called on this instance. 111/// Gets whether the next call to <see cref="SpinOnce()"/> will yield the processor, triggering a 114/// <value>Whether the next call to <see cref="SpinOnce()"/> will yield the processor, triggering a 117/// On a single-CPU machine, <see cref="SpinOnce()"/> always yields the processor. On machines with 118/// multiple CPUs, <see cref="SpinOnce()"/> may yield after an unspecified number of calls. 127/// <see cref="SpinOnce()"/> has been called thus far on this instance. 146/// <see cref="SpinOnce()"/> has been called thus far on this instance. 245/// This makes <see cref="SpinOnce()"/> and <see cref="NextSpinWillYield"/> behave as though no calls 246/// to <see cref="SpinOnce()"/> had been issued on this instance. If a <see cref="SpinWait"/> instance 328spinner.SpinOnce();
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
1407sw.SpinOnce();
src\System\Runtime\ControlledExecution.CoreCLR.cs (1)
91sw.SpinOnce();
System.Private.Xml (1)
System\Xml\Schema\XmlSchemaSet.cs (1)
324spinner.SpinOnce(); //Let the thread that holds the lock run
System.Threading (1)
System\Threading\Barrier.cs (1)
849spinner.SpinOnce();
System.Threading.Tasks.Parallel (2)
System\Threading\Tasks\ParallelLoopState.cs (2)
216wait.SpinOnce(); 322sw.SpinOnce();
Test.Utilities (2)
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (1)
70spinWait.SpinOnce();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
116spin.SpinOnce();
Text.Analyzers (2)
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (1)
70spinWait.SpinOnce();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
116spin.SpinOnce();