34 references to LockCookieFlags
System.Threading (34)
System\Threading\LockCookie.cs (1)
14
internal
LockCookieFlags
_flags;
System\Threading\ReaderWriterLock.cs (33)
678
lockCookie._flags =
LockCookieFlags
.Upgrade |
LockCookieFlags
.OwnedWriter;
689
lockCookie._flags =
LockCookieFlags
.Upgrade |
LockCookieFlags
.OwnedNone;
698
lockCookie._flags =
LockCookieFlags
.Upgrade |
LockCookieFlags
.OwnedReader;
734
LockCookieFlags
flags = lockCookie._flags;
735
lockCookie._flags =
LockCookieFlags
.Invalid;
737
RecoverLock(ref lockCookie, flags &
LockCookieFlags
.OwnedReader);
754
LockCookieFlags
flags = lockCookie._flags;
756
if ((flags &
LockCookieFlags
.Invalid) != 0 ||
760
(flags & (
LockCookieFlags
.OwnedWriter |
LockCookieFlags
.OwnedNone)) != 0 &&
768
if ((flags &
LockCookieFlags
.OwnedReader) != 0)
825
else if ((flags & (
LockCookieFlags
.OwnedWriter |
LockCookieFlags
.OwnedNone)) != 0)
865
Debug.Assert((flags &
LockCookieFlags
.OwnedWriter) != 0 || _writerID != threadID);
869
lockCookie._flags =
LockCookieFlags
.Invalid;
881
lockCookie._flags =
LockCookieFlags
.Release |
LockCookieFlags
.OwnedWriter;
893
lockCookie._flags =
LockCookieFlags
.Release |
LockCookieFlags
.OwnedNone;
901
lockCookie._flags =
LockCookieFlags
.Release |
LockCookieFlags
.OwnedReader;
925
LockCookieFlags
flags = lockCookie._flags;
926
if ((flags &
LockCookieFlags
.Invalid) != 0)
933
if ((flags &
LockCookieFlags
.OwnedNone) != 0)
939
if ((flags &
LockCookieFlags
.OwnedWriter) != 0)
950
else if ((flags &
LockCookieFlags
.OwnedReader) != 0)
970
lockCookie._flags =
LockCookieFlags
.Invalid;
977
private void RecoverLock(ref LockCookie lockCookie,
LockCookieFlags
flags)
984
if ((flags &
LockCookieFlags
.OwnedWriter) != 0)
991
else if ((flags &
LockCookieFlags
.OwnedReader) != 0)