Skip to content

Commit

Permalink
rename block_nonconst to block_mutable
Browse files Browse the repository at this point in the history
  • Loading branch information
theartful committed Mar 16, 2024
1 parent c958a1b commit a8a446f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions broadcast_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ class queue_data<T, WaitingStrategy,
}

// I know we can const overload, but I don't like it
storage_block<value_type, waiting_strategy> &block_nonconst(uint32_t pos) {
storage_block<value_type, waiting_strategy> &block_mutable(uint32_t pos) {
return m_storage_blocks[pos];
}

Expand Down Expand Up @@ -487,7 +487,7 @@ class queue_data<T, WaitingStrategy,
m_allocator{&m_storage} {

for (size_t i = 0; i < m_internal_queue.capacity(); i++) {
m_internal_queue.block_nonconst(i).store_nosync(nullptr);
m_internal_queue.block_mutable(i).store_nosync(nullptr);
}
}

Expand Down

0 comments on commit a8a446f

Please sign in to comment.