mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
threadpool: use std::move when taking an element off the queue
It has a std::function, which can have a capture context, and the function runtime might be small
This commit is contained in:
parent
fe3f6a3e6b
commit
b9b5c473d1
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ void threadpool::run(bool flush) {
|
||||||
if (!running) break;
|
if (!running) break;
|
||||||
|
|
||||||
active++;
|
active++;
|
||||||
e = queue.front();
|
e = std::move(queue.front());
|
||||||
queue.pop_front();
|
queue.pop_front();
|
||||||
lock.unlock();
|
lock.unlock();
|
||||||
++depth;
|
++depth;
|
||||||
|
|
Loading…
Reference in a new issue