mirror of
https://github.com/monero-project/monero.git
synced 2024-12-26 12:49:27 -05:00
Merge pull request #6141
b9b5c473
threadpool: use std::move when taking an element off the queue (moneromooo-monero)
This commit is contained in:
commit
c39ea485a0
@ -160,7 +160,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 New Issue
Block a user