Searched refs:UPGRADED (Results 1 – 1 of 1) sorted by relevance
21 const UPGRADED: u32 = 1 << 1; constant137 if value & (WRITER | UPGRADED) != 0 { in inner_try_read()165 return state / READER + (state & UPGRADED) / UPGRADED; in reader_count()235 if self.lock.fetch_or(UPGRADED, Ordering::Acquire) & (WRITER | UPGRADED) == 0 { in inner_try_upgradeable_read()271 debug_assert_eq!(self.lock.load(Ordering::Relaxed) & !(WRITER | UPGRADED), 0); in force_write_unlock()272 self.lock.fetch_and(!(WRITER | UPGRADED), Ordering::Release); in force_write_unlock()317 UPGRADED, in try_upgrade()429 self.inner.lock.load(Ordering::Acquire) & (WRITER | UPGRADED), in downgrade_to_upgradeable()433 self.inner.lock.store(UPGRADED, Ordering::Release); in downgrade_to_upgradeable()478 debug_assert!(self.lock.load(Ordering::Relaxed) & !(WRITER | UPGRADED) > 0); in drop()[all …]