diff options
author | Alexander Blair <snipa@jagtech.io> | 2020-01-16 17:45:43 -0800 |
---|---|---|
committer | Alexander Blair <snipa@jagtech.io> | 2020-01-16 17:45:44 -0800 |
commit | c39ea485a043a234001dcd02e296331ea52554be (patch) | |
tree | cb784c8f72e5bfecbb8ede11cf00ca37162601de | |
parent | Merge pull request #6139 (diff) | |
parent | threadpool: use std::move when taking an element off the queue (diff) | |
download | monero-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.cpp | 2 |
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; |