64 references to EnterSpinLockReason
System.Core (64)
system\threading\ReaderWriterLockSlim\ReaderWriterLockSlim.cs (64)
338
_spinLock.Enter(
EnterSpinLockReason
.EnterAnyRead);
364
_spinLock.Enter(
EnterSpinLockReason
.EnterAnyRead);
420
_spinLock.Enter(
EnterSpinLockReason
.EnterAnyRead);
496
EnterSpinLockReason
enterMyLockReason;
506
enterMyLockReason =
EnterSpinLockReason
.UpgradeToWrite;
510
enterMyLockReason =
EnterSpinLockReason
.EnterWrite;
525
EnterSpinLockReason
enterMyLockReason;
528
enterMyLockReason =
EnterSpinLockReason
.EnterRecursiveWrite;
532
enterMyLockReason =
EnterSpinLockReason
.UpgradeToWrite;
536
enterMyLockReason =
EnterSpinLockReason
.EnterWrite;
620
_spinLock.Enter(upgradingToWrite ?
EnterSpinLockReason
.UpgradeToWrite :
EnterSpinLockReason
.EnterWrite);
728
_spinLock.Enter(
EnterSpinLockReason
.EnterAnyRead);
739
_spinLock.Enter(
EnterSpinLockReason
.EnterAnyRead);
796
_spinLock.Enter(
EnterSpinLockReason
.EnterAnyRead);
831
_spinLock.Enter(
EnterSpinLockReason
.ExitAnyRead);
883
_spinLock.Enter(
EnterSpinLockReason
.ExitAnyWrite);
887
_spinLock.Enter(
EnterSpinLockReason
.ExitAnyWrite);
936
_spinLock.Enter(
EnterSpinLockReason
.ExitAnyRead);
940
_spinLock.Enter(
EnterSpinLockReason
.ExitAnyRead);
998
EnterSpinLockReason
enterMyLockReason;
1003
enterMyLockReason =
EnterSpinLockReason
.EnterAnyRead |
EnterSpinLockReason
.Wait;
1007
enterMyLockReason =
EnterSpinLockReason
.EnterWrite |
EnterSpinLockReason
.Wait;
1012
enterMyLockReason =
EnterSpinLockReason
.UpgradeToWrite |
EnterSpinLockReason
.Wait;
1038
EnterSpinLockReason
enterMyLockReason;
1046
enterMyLockReason =
EnterSpinLockReason
.EnterAnyRead;
1051
enterMyLockReason =
EnterSpinLockReason
.EnterWrite;
1056
enterMyLockReason =
EnterSpinLockReason
.UpgradeToWrite;
1521
/// <see cref="EnterSpin(
EnterSpinLockReason
)"/> avoids acquiring the lock as long as the operation for which it
1540
private static int GetEnterDeprioritizationStateChange(
EnterSpinLockReason
reason)
1542
EnterSpinLockReason
operation = reason &
EnterSpinLockReason
.OperationMask;
1545
case
EnterSpinLockReason
.EnterAnyRead:
1548
case
EnterSpinLockReason
.ExitAnyRead:
1553
case
EnterSpinLockReason
.EnterWrite:
1569
operation ==
EnterSpinLockReason
.UpgradeToWrite ||
1570
operation ==
EnterSpinLockReason
.EnterRecursiveWrite ||
1571
operation ==
EnterSpinLockReason
.ExitAnyWrite);
1602
private bool IsEnterDeprioritized(
EnterSpinLockReason
reason)
1604
Debug.Assert((reason &
EnterSpinLockReason
.Wait) != 0 || reason == (reason &
EnterSpinLockReason
.OperationMask));
1606
(reason &
EnterSpinLockReason
.Wait) == 0 ||
1607
(reason &
EnterSpinLockReason
.OperationMask) ==
EnterSpinLockReason
.EnterAnyRead ||
1608
(reason &
EnterSpinLockReason
.OperationMask) ==
EnterSpinLockReason
.EnterWrite ||
1609
(reason &
EnterSpinLockReason
.OperationMask) ==
EnterSpinLockReason
.UpgradeToWrite);
1615
(reason &
EnterSpinLockReason
.Wait) != 0 ||
1616
reason ==
EnterSpinLockReason
.ExitAnyRead ||
1617
reason ==
EnterSpinLockReason
.EnterRecursiveWrite ||
1618
reason ==
EnterSpinLockReason
.ExitAnyWrite);
1621
case
EnterSpinLockReason
.EnterAnyRead:
1624
case
EnterSpinLockReason
.EnterWrite:
1628
case
EnterSpinLockReason
.UpgradeToWrite:
1641
public void Enter(
EnterSpinLockReason
reason)
1649
private void EnterSpin(
EnterSpinLockReason
reason)
1691
reason ==
EnterSpinLockReason
.EnterAnyRead ||
1692
reason ==
EnterSpinLockReason
.EnterWrite ||
1693
reason ==
EnterSpinLockReason
.UpgradeToWrite);
1696
reason |=
EnterSpinLockReason
.Wait;