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