8 references to WAITERS_MASK
mscorlib (8)
system\threading\SpinLock.cs (8)
111
private static int MAXIMUM_WAITERS =
WAITERS_MASK
;
362
if ((observedOwner &
WAITERS_MASK
) != MAXIMUM_WAITERS)
363
turn = (Interlocked.Add(ref m_owner, 2) &
WAITERS_MASK
) >> 1 ;
395
int newOwner = (observedOwner &
WAITERS_MASK
) == 0 ? // Gets the number of waiters, if zero
398
Contract.Assert((newOwner &
WAITERS_MASK
) >= 0);
437
int newOwner = (observedOwner &
WAITERS_MASK
) == 0 ? // Gets the number of waiters, if zero
440
Contract.Assert((newOwner &
WAITERS_MASK
) >= 0);
499
if ((observedOwner &
WAITERS_MASK
) == 0) return; // don't decrement the waiters if it's corrupted by previous call of Exit(false)