38 instantiations of SpinWait
mscorlib (28)
system\Collections\Concurrent\ConcurrentQueue.cs (9)
280
SpinWait spin = new
SpinWait
();
364
SpinWait spin = new
SpinWait
();
501
SpinWait spin = new
SpinWait
();
579
SpinWait spin = new
SpinWait
();
826
SpinWait spin = new
SpinWait
();
835
SpinWait spinLocal = new
SpinWait
();
861
spinLocal = new
SpinWait
();
894
SpinWait spin = new
SpinWait
();
913
SpinWait spin = new
SpinWait
();
system\Collections\Concurrent\ConcurrentStack.cs (2)
450
SpinWait spin = new
SpinWait
();
675
SpinWait spin = new
SpinWait
();
system\collections\concurrent\PartitionerStatic.cs (1)
807
SpinWait sw = new
SpinWait
();
system\threading\CancellationTokenSource.cs (1)
943
SpinWait sw = new
SpinWait
();
system\threading\CountdownEvent.cs (2)
242
SpinWait spin = new
SpinWait
();
353
SpinWait spin = new
SpinWait
();
system\threading\ManualResetEventSlim.cs (1)
770
SpinWait sw = new
SpinWait
();
system\threading\SemaphoreSlim.cs (1)
346
SpinWait spin = new
SpinWait
();
system\threading\SpinLock.cs (2)
495
SpinWait spinner = new
SpinWait
();
528
SpinWait spinner = new
SpinWait
();
system\threading\SpinWait.cs (1)
263
SpinWait spinner = new
SpinWait
();
system\threading\Tasks\ParallelLoopState.cs (3)
222
SpinWait wait = new
SpinWait
();
265
SpinWait wait = new
SpinWait
();
436
SpinWait sw = new
SpinWait
();
system\threading\Tasks\Task.cs (3)
815
SpinWait sw = new
SpinWait
();
830
SpinWait sw = new
SpinWait
();
866
SpinWait sw = new
SpinWait
();
system\threading\Tasks\TaskCompletionSource.cs (1)
137
var sw = new
SpinWait
();
system\threading\threadpool.cs (1)
536
SpinWait spinner = new
SpinWait
();
System (8)
sys\system\collections\concurrent\BlockingCollection.cs (2)
465
SpinWait spinner = new
SpinWait
();
1497
SpinWait spinner = new
SpinWait
();
sys\system\collections\concurrent\ConcurrentBag.cs (2)
443
SpinWait spinner = new
SpinWait
();
851
SpinWait spinner = new
SpinWait
();
sys\system\threading\Barrier.cs (4)
357
SpinWait spinner = new
SpinWait
();
458
SpinWait spinner = new
SpinWait
();
660
SpinWait spinner = new
SpinWait
();
876
SpinWait spinner = new
SpinWait
();
System.Core (2)
System\IO\Pipes\Pipe.cs (2)
1185
var sw = new
SpinWait
();
1290
var sw = new
SpinWait
();
45 references to SpinWait
mscorlib (33)
system\Collections\Concurrent\ConcurrentQueue.cs (8)
280
SpinWait
spin = new SpinWait();
364
SpinWait
spin = new SpinWait();
501
SpinWait
spin = new SpinWait();
579
SpinWait
spin = new SpinWait();
826
SpinWait
spin = new SpinWait();
835
SpinWait
spinLocal = new SpinWait();
894
SpinWait
spin = new SpinWait();
913
SpinWait
spin = new SpinWait();
system\Collections\Concurrent\ConcurrentStack.cs (2)
450
SpinWait
spin = new SpinWait();
675
SpinWait
spin = new SpinWait();
system\collections\concurrent\PartitionerStatic.cs (1)
807
SpinWait
sw = new SpinWait();
system\threading\CancellationTokenSource.cs (1)
943
SpinWait
sw = new SpinWait();
system\threading\CountdownEvent.cs (2)
242
SpinWait
spin = new SpinWait();
353
SpinWait
spin = new SpinWait();
system\threading\ManualResetEventSlim.cs (2)
57
private const int DEFAULT_SPIN_MP =
SpinWait
.YIELD_THRESHOLD;
770
SpinWait
sw = new SpinWait();
system\threading\SemaphoreSlim.cs (1)
346
SpinWait
spin = new SpinWait();
system\threading\SpinLock.cs (2)
495
SpinWait
spinner = new SpinWait();
528
SpinWait
spinner = new SpinWait();
system\threading\SpinWait.cs (5)
56
/// <see cref="
SpinWait
"/> encapsulates common spinning logic. On single-processor machines, yields are
62
/// <see cref="
SpinWait
"/> is a value type, which means that low-level code can utilize SpinWait without
66
/// the <see cref="
SpinWait
"/> type should be preferred over the <see
186
/// to <see cref="SpinOnce"/> had been issued on this instance. If a <see cref="
SpinWait
"/> instance
263
SpinWait
spinner = new SpinWait();
system\threading\Tasks\ParallelLoopState.cs (3)
222
SpinWait
wait = new SpinWait();
265
SpinWait
wait = new SpinWait();
436
SpinWait
sw = new SpinWait();
system\threading\Tasks\Task.cs (4)
815
SpinWait
sw = new SpinWait();
830
SpinWait
sw = new SpinWait();
866
SpinWait
sw = new SpinWait();
3359
int spinCount = PlatformHelper.IsSingleProcessor ? 1 : System.Threading.
SpinWait
.YIELD_THRESHOLD; //spin only once if we are running on a single CPU
system\threading\Tasks\TaskCompletionSource.cs (1)
137
var
sw = new SpinWait();
system\threading\threadpool.cs (1)
536
SpinWait
spinner = new SpinWait();
System (8)
sys\system\collections\concurrent\BlockingCollection.cs (2)
465
SpinWait
spinner = new SpinWait();
1497
SpinWait
spinner = new SpinWait();
sys\system\collections\concurrent\ConcurrentBag.cs (2)
443
SpinWait
spinner = new SpinWait();
851
SpinWait
spinner = new SpinWait();
sys\system\threading\Barrier.cs (4)
357
SpinWait
spinner = new SpinWait();
458
SpinWait
spinner = new SpinWait();
660
SpinWait
spinner = new SpinWait();
876
SpinWait
spinner = new SpinWait();
System.Core (2)
System\IO\Pipes\Pipe.cs (2)
1185
var
sw = new SpinWait();
1290
var
sw = new SpinWait();
System.Data (2)
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
2335
SpinWait
.SpinUntil(() => !stateObj._attentionSending);
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (1)
863
SpinWait
.SpinUntil(() => Volatile.Read(ref _readingCount) == 0);