Skip to content

Commit

Permalink
update 654e603e753019f804100e796c556d7aa8078804
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtomjhj committed Oct 18, 2023
1 parent 5267c58 commit 58cc84a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homework/src/list_set/optimistic_fine_grained.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl<T> OptimisticFineGrainedListSet<T> {

fn head<'g>(&'g self, guard: &'g Guard) -> Cursor<'g, T> {
let prev = unsafe { self.head.read_lock() };
let curr = prev.load(Ordering::Relaxed, guard);
let curr = prev.load(Ordering::SeqCst, guard);
Cursor { prev, curr }
}
}
Expand Down

0 comments on commit 58cc84a

Please sign in to comment.