Merge pull request #6141

b9b5c473 threadpool: use std::move when taking an element off the queue (moneromooo-monero)
This commit is contained in:
Alexander Blair 2020-01-16 17:45:43 -08:00
commit c39ea485a0
No known key found for this signature in database
GPG Key ID: C64552D877C32479
1 changed files with 1 additions and 1 deletions

View File

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