Commit 1d12ff72 authored by Dominik Charousset's avatar Dominik Charousset

Remove unnecessary atomic load operation

parent f9ed3a49
......@@ -166,7 +166,7 @@ class double_ended_queue {
{ // lifetime scope of guard
lock_guard guard(m_head_lock);
first.reset(m_head.load());
node* next = m_head.load()->next;
node* next = first->next;
if (next == nullptr) {
// queue is empty
first.release();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment