Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions include/boost/lockfree/spsc_value.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ struct spsc_value
m_write_index.index(),
true,
},
std::memory_order_release );
std::memory_order_acq_rel );
m_write_index.set_tag_and_index( old_avail_index.index(), false );
}

Expand All @@ -268,7 +268,7 @@ struct spsc_value

if ( m_available_index.compare_exchange_strong( current_avail_index_with_tag,
new_avail_index,
std::memory_order_acquire ) ) {
std::memory_order_acq_rel ) ) {
m_read_index = tagged_index( current_avail_index_with_tag.index(), false );
return true;
} else
Expand All @@ -280,7 +280,7 @@ struct spsc_value
if ( !current_avail_index.is_consumable() )
return false;

current_avail_index = m_available_index.exchange( new_avail_index, std::memory_order_acquire );
current_avail_index = m_available_index.exchange( new_avail_index, std::memory_order_acq_rel );
m_read_index = tagged_index {
current_avail_index.index(),
false,
Expand Down
Loading