Skip to content

Commit 0f6d58d

Browse files
committed
add annotation
1 parent 93628a7 commit 0f6d58d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lockfree/list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ where
260260
// Release: to release current view of the deleting thread on this mark.
261261
// Acquire: to ensure that if the latter CAS succeeds, then the thread that reads `next`
262262
// through `prev` will be safe.
263-
let next = curr_node.next.fetch_or(1, AcqRel, guard);
263+
let next = curr_node.next.fetch_or(1, AcqRel, guard); // mark curr_node.next as logically removed
264264
if next.tag() == 1 {
265265
return Err(());
266266
}

0 commit comments

Comments
 (0)