diff --git a/include/thread_pool/work_stealing_deque.h b/include/thread_pool/work_stealing_deque.h index 44ffaa1..e3d9ab9 100644 --- a/include/thread_pool/work_stealing_deque.h +++ b/include/thread_pool/work_stealing_deque.h @@ -178,7 +178,7 @@ namespace dp { if (top < bottom) { // non-empty queue - auto buffer = buffer_.load(release); + auto buffer = buffer_.load(acquire); auto temp = buffer->load(top, acquire); if (!top_.compare_exchange_strong(top, top + 1, seq_cst, relaxed)) { // failed the race