13 references to ShouldNotPreemptWaiters
System.Private.CoreLib (13)
src\libraries\System.Private.CoreLib\src\System\Threading\Lock.cs (13)
946Debug.Assert(!ShouldNotPreemptWaiters); 954Debug.Assert(ShouldNotPreemptWaiters); 962Debug.Assert(HasAnyWaiters || !ShouldNotPreemptWaiters); 1139if (newState.ShouldNotPreemptWaiters) 1151Debug.Assert(!newState.ShouldNotPreemptWaiters); 1188return state.ShouldNotPreemptWaiters ? TryLockResult.Wait : TryLockResult.Spin; 1217Debug.Assert(state.HasAnyWaiters || !state.ShouldNotPreemptWaiters); 1313if (newState.ShouldNotPreemptWaiters) 1333Debug.Assert(!state.ShouldNotPreemptWaiters || waiterStartTimeWasRecorded); 1372if (newState.ShouldNotPreemptWaiters) 1392Debug.Assert(!state.ShouldNotPreemptWaiters || waiterStartTimeWasRecorded); 1420if (newState.ShouldNotPreemptWaiters && !newState.HasAnyWaiters) 1457if (!newState.ShouldNotPreemptWaiters && lockObj.ShouldStopPreemptingWaiters)