Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed invalid memory model

  • Loading branch information...
commit c47b1681c720840ff871303f54b80c9846f67184 1 parent ec9e7e7
@saleyn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  include/utxx/concurrent_mpsc_queue.hpp
View
2  include/utxx/concurrent_mpsc_queue.hpp
@@ -99,7 +99,7 @@ struct concurrent_mpsc_queue {
///
/// Use concurrent_mpsc_queue::free() to deallocate each node
node* pop_all_reverse() {
- return m_head.exchange(nullptr, std::memory_order_consume);
+ return m_head.exchange(nullptr, std::memory_order_acquire);
}
/// Deallocate a node created by a call to pop_all() or pop_all_reverse()
Please sign in to comment.
Something went wrong with that request. Please try again.