Skip to content

Commit

Permalink
fix: SDR: update comment (#1603)
Browse files Browse the repository at this point in the history
This commit fixes a comment that was outdated. Originally three atomics
were used. With commit [a43f3a9] the
atomic that is tracking which node the consumer is currently working on
was moved into the `CacheReader`.

[a43f3a9]: a43f3a9#diff-c1a5ea514dd1555f26b0c1c63a7435ef2804e8759e44de747904ed4bcb47bf20L230-L231

Closes #1602.
  • Loading branch information
vmx authored May 27, 2022
1 parent 6b1c28a commit aecc1ee
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ fn create_layer_labels(
// Next node to be filled
let cur_awaiting = AtomicU64::new(1);

// These UnsafeSlices are managed through the 3 Atomics above, to minimize any locking overhead.
// These UnsafeSlices are managed through the 2 Atomics above and the `CacheReader`, to
// minimize any locking overhead.
let layer_labels = UnsafeSlice::from_slice(
layer_labels
.as_mut_slice_of::<u32>()
Expand Down

0 comments on commit aecc1ee

Please sign in to comment.