Home
last modified time | relevance | path

Searched refs:UPGRADED (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.9/kernel/src/libs/
Drwlock.rs24 const UPGRADED: u32 = 1 << 1; constant
143 if value & (WRITER | UPGRADED) != 0 { in inner_try_read()
197 return state / READER + (state & UPGRADED) / UPGRADED; in reader_count()
315 if self.lock.fetch_or(UPGRADED, Ordering::Acquire) & (WRITER | UPGRADED) == 0 { in inner_try_upgradeable_read()
367 debug_assert_eq!(self.lock.load(Ordering::Relaxed) & !(WRITER | UPGRADED), 0); in force_write_unlock()
368 self.lock.fetch_and(!(WRITER | UPGRADED), Ordering::Release); in force_write_unlock()
413 UPGRADED, in try_upgrade()
528 self.inner.lock.load(Ordering::Acquire) & (WRITER | UPGRADED), in downgrade_to_upgradeable()
532 self.inner.lock.store(UPGRADED, Ordering::Release); in downgrade_to_upgradeable()
579 debug_assert!(self.lock.load(Ordering::Relaxed) & !(WRITER | UPGRADED) > 0); in drop()
[all …]