5 writes to _bits
System.Web (5)
Util\ReadWriteSpinLock.cs (5)
128
int n = Interlocked.Decrement(ref
_bits
);
152
test = Interlocked.CompareExchange(ref
_bits
, newBits, oldBits);
196
test = Interlocked.CompareExchange(ref
_bits
, newBits, oldBits);
214
test = Interlocked.CompareExchange(ref
_bits
, newBits, oldBits);
238
if (Interlocked.CompareExchange(ref
_bits
, oldBits + 1, oldBits) == oldBits) {
13 references to _bits
System.Web (13)
Util\ReadWriteSpinLock.cs (13)
74
bool WriterWaiting() {return WriterWaiting(
_bits
);}
75
int WriteLockCount() {return WriteLockCount(
_bits
);}
76
int ReadLockCount() {return ReadLockCount(
_bits
);}
77
bool NoWriters() {return NoWriters(
_bits
);}
78
bool NoWritersOrWaitingWriters() {return NoWritersOrWaitingWriters(
_bits
);}
79
bool NoLocks() {return NoLocks(
_bits
);}
102
Debug.Trace("Spinlock", "AcquireReaderLock: _bits=" +
_bits
.ToString("x8", CultureInfo.InvariantCulture)
117
Debug.Trace("Spinlock", "AcquireWriterLock: _bits=" +
_bits
.ToString("x8", CultureInfo.InvariantCulture)
131
Debug.Trace("Spinlock", "ReleaseReaderLock: _bits=" +
_bits
.ToString("x8", CultureInfo.InvariantCulture)
167
int oldBits =
_bits
;
177
Debug.Trace("Spinlock", "ReleaseWriterLock: _bits=" +
_bits
.ToString("x8", CultureInfo.InvariantCulture)
184
int oldBits =
_bits
;
226
int oldBits =
_bits
;