We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93628a7 commit 0f6d58dCopy full SHA for 0f6d58d
src/lockfree/list.rs
@@ -260,7 +260,7 @@ where
260
// Release: to release current view of the deleting thread on this mark.
261
// Acquire: to ensure that if the latter CAS succeeds, then the thread that reads `next`
262
// through `prev` will be safe.
263
- let next = curr_node.next.fetch_or(1, AcqRel, guard);
+ let next = curr_node.next.fetch_or(1, AcqRel, guard); // mark curr_node.next as logically removed
264
if next.tag() == 1 {
265
return Err(());
266
}
0 commit comments