aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-11-09 14:13:35 +0200
committerRiccardo Spagni <ric@spagni.net>2016-11-09 14:13:35 +0200
commit38727f7d2ff178e46c04f44b067259df2b33e293 (patch)
tree1210179a38c194277cc6f86b0fa44d807b13ee23
parentMerge pull request #1311 (diff)
parentthread_group: fix build with asserts enabled (diff)
downloadmonero-38727f7d2ff178e46c04f44b067259df2b33e293.tar.xz
Merge pull request #1312
acf908c thread_group: fix build with asserts enabled (moneromooo-monero)
-rw-r--r--src/common/thread_group.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/thread_group.cpp b/src/common/thread_group.cpp
index ece268ab7..aa1b64f2e 100644
--- a/src/common/thread_group.cpp
+++ b/src/common/thread_group.cpp
@@ -151,7 +151,7 @@ void thread_group::data::dispatch(std::function<void()> f) {
{
const std::unique_lock<std::mutex> lock(mutex);
assert(last != nullptr);
- assert(last->next == nullptr);
+ assert(last->ptr == nullptr);
if (pending == std::numeric_limits<std::size_t>::max()) {
throw std::overflow_error("thread_group exceeded max queue depth");
}