From acf908c8341f62fadf938ffd79f26162e3c0acb5 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 9 Nov 2016 11:29:06 +0000 Subject: [PATCH] thread_group: fix build with asserts enabled See https://github.com/monero-project/monero/pull/1291 --- src/common/thread_group.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f) { { const std::unique_lock lock(mutex); assert(last != nullptr); - assert(last->next == nullptr); + assert(last->ptr == nullptr); if (pending == std::numeric_limits::max()) { throw std::overflow_error("thread_group exceeded max queue depth"); }