aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-01-16 17:45:43 -0800
committerAlexander Blair <snipa@jagtech.io>2020-01-16 17:45:44 -0800
commitc39ea485a043a234001dcd02e296331ea52554be (patch)
treecb784c8f72e5bfecbb8ede11cf00ca37162601de
parentMerge pull request #6139 (diff)
parentthreadpool: use std::move when taking an element off the queue (diff)
downloadmonero-c39ea485a043a234001dcd02e296331ea52554be.tar.xz
Merge pull request #6141
b9b5c473 threadpool: use std::move when taking an element off the queue (moneromooo-monero)
-rw-r--r--src/common/threadpool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/threadpool.cpp b/src/common/threadpool.cpp
index 6eb527cdc..18204eeee 100644
--- a/src/common/threadpool.cpp
+++ b/src/common/threadpool.cpp
@@ -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;