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