Skip to content

Commit

Permalink
sync: remove stale comment (#6406)
Browse files Browse the repository at this point in the history
  • Loading branch information
maminrayej authored Mar 17, 2024
1 parent bd51fea commit 5baa8d5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tokio/src/sync/mpsc/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,6 @@ impl<T> Block<T> {
///
/// This indicates that the block is in its final state and will no longer
/// be mutated.
///
/// # Implementation
///
/// The implementation walks each slot checking the `ready` flag. It might
/// be that it would make more sense to coalesce ready flags as bits in a
/// single atomic cell. However, this could have negative impact on cache
/// behavior as there would be many more mutations to a single slot.
pub(crate) fn is_final(&self) -> bool {
self.header.ready_slots.load(Acquire) & READY_MASK == READY_MASK
}
Expand Down

0 comments on commit 5baa8d5

Please sign in to comment.