mirror of
https://github.com/gabime/spdlog.git
synced 2026-01-02 09:57:55 +08:00
Avoid un necessary move when popping circular_q
This commit is contained in:
@@ -59,7 +59,8 @@ public:
|
||||
{
|
||||
return false;
|
||||
}
|
||||
q_.pop_front(popped_item);
|
||||
popped_item = std::move(q_.front());
|
||||
q_.pop_front();
|
||||
}
|
||||
pop_cv_.notify_one();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user