Lines Matching full:stamp
10 /// All bits except the least significant one hold the current stamp. When locked, the state
11 /// equals 1 and doesn't contain a valid stamp.
22 /// If not locked, returns the current stamp.
35 /// Returns `true` if the current stamp is equal to `stamp`.
38 /// argument `stamp` should correspond to the one returned by method `optimistic_read`.
40 pub(crate) fn validate_read(&self, stamp: usize) -> bool { in validate_read()
42 self.state.load(Ordering::Relaxed) == stamp in validate_read()
66 /// An RAII guard that releases the lock and increments the stamp when dropped.
71 /// The stamp before locking.
76 /// Releases the lock without incrementing the stamp.
82 // what increments the stamp. in abort()
90 // Release the lock and increment the stamp. in drop()
110 assert_eq!(before, after, "aborted write does not update the stamp"); in test_abort()