Permalink
Browse files

Fixed invalid memory model

  • Loading branch information...
1 parent ec9e7e7 commit c47b1681c720840ff871303f54b80c9846f67184 @saleyn committed Jul 9, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 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()

0 comments on commit c47b168

Please sign in to comment.