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
release-0.8.0.2
moneromooo-monero 5 years ago
parent fe3f6a3e6b
commit b9b5c473d1
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -145,7 +145,7 @@ void threadpool::run(bool flush) {
if (!running) break;
active++;
e = queue.front();
e = std::move(queue.front());
queue.pop_front();
lock.unlock();
++depth;

Loading…
Cancel
Save