16 writes to m_owner
mscorlib (16)
system\threading\SpinLock.cs (16)
125
m_owner
= LOCK_UNOWNED;
128
m_owner
|= LOCK_ID_DISABLE_MASK;
170
Interlocked.CompareExchange(ref
m_owner
, observedOwner | LOCK_ANONYMOUS_OWNED, observedOwner, ref lockTaken) != observedOwner) //acquiring the lock failed
270
Interlocked.CompareExchange(ref
m_owner
, observedOwner | LOCK_ANONYMOUS_OWNED, observedOwner, ref lockTaken) != observedOwner) // acquiring the lock failed
350
if (Interlocked.CompareExchange(ref
m_owner
, observedOwner | 1, observedOwner, ref lockTaken) == observedOwner)
363
turn = (Interlocked.Add(ref
m_owner
, 2) & WAITERS_MASK) >> 1 ;
406
if (Interlocked.CompareExchange(ref
m_owner
, newOwner, observedOwner, ref lockTaken) == observedOwner)
448
if (Interlocked.CompareExchange(ref
m_owner
, newOwner, observedOwner, ref lockTaken) == observedOwner)
500
if (Interlocked.CompareExchange(ref
m_owner
, observedOwner - 2, observedOwner) == observedOwner)
552
if (Interlocked.CompareExchange(ref
m_owner
, m_newOwner, lockUnowned, ref lockTaken) == lockUnowned)
590
Interlocked.Decrement(ref
m_owner
);
623
m_owner
= tmpOwner & (~LOCK_ANONYMOUS_OWNED);
652
Interlocked.Exchange(ref
m_owner
, LOCK_UNOWNED);
654
Interlocked.Decrement(ref
m_owner
);
660
m_owner
= LOCK_UNOWNED;
664
m_owner
= tmpOwner & (~LOCK_ANONYMOUS_OWNED);
19 references to m_owner
mscorlib (19)
system\threading\SpinLock.cs (19)
167
int observedOwner =
m_owner
;
266
int observedOwner =
m_owner
;
310
CdsSyncEtwBCLProvider.Log.SpinLock_FastPathFailed(
m_owner
);
336
observedOwner =
m_owner
;
388
observedOwner =
m_owner
;
431
observedOwner =
m_owner
;
498
int observedOwner =
m_owner
;
521
if (
m_owner
== m_newOwner)
540
if (
m_owner
== lockUnowned)
587
if ((
m_owner
& LOCK_ID_DISABLE_MASK) == 0)
620
if ((
m_owner
& LOCK_ID_DISABLE_MASK) != 0 && !useMemoryBarrier)
622
int tmpOwner =
m_owner
;
642
bool threadTrackingEnabled = (
m_owner
& LOCK_ID_DISABLE_MASK) == 0;
663
int tmpOwner =
m_owner
;
680
return
m_owner
!= LOCK_UNOWNED;
682
return (
m_owner
& LOCK_ANONYMOUS_OWNED) != LOCK_UNOWNED;
709
return ((
m_owner
& (~LOCK_ID_DISABLE_MASK)) == Thread.CurrentThread.ManagedThreadId);
717
get { return (
m_owner
& LOCK_ID_DISABLE_MASK) == 0; }
766
return m_spinLock.
m_owner
;