14 writes to _owners
System.Core (14)
system\threading\ReaderWriterLockSlim\ReaderWriterLockSlim.cs (14)
357
_owners
++;
377
_owners
++;
387
_owners
++;
404
_owners
++; // Indicate we have another reader
753
_owners
++;
780
_owners
++;
862
--
_owners
;
969
_owners
--;
1252
_owners
|= WRITER_HELD; // indicate we have a writer.
1257
_owners
&= ~WRITER_HELD;
1262
_owners
|= WAITING_WRITERS;
1267
_owners
&= ~WAITING_WRITERS;
1272
_owners
|= WAITING_UPGRADER;
1277
_owners
&= ~WAITING_UPGRADER;
8 references to _owners
System.Core (8)
system\threading\ReaderWriterLockSlim\ReaderWriterLockSlim.cs (8)
401
if (
_owners
< MAX_READER)
656
Debug.Assert((
_owners
& WRITER_HELD) > 0);
752
Debug.Assert((
_owners
& WRITER_HELD) > 0);
778
if ((_upgradeLockOwnerId == -1) && (
_owners
< MAX_READER))
860
Debug.Assert(
_owners
> 0, "ReleasingReaderLock: releasing lock and no read lock taken");
914
Debug.Assert((
_owners
& WRITER_HELD) > 0, "Calling ReleaseWriterLock when no write lock is held");
1247
return (
_owners
& ~WAITING_WRITERS) == 0;
1282
return
_owners
& READER_MASK;