aboutsummaryrefslogtreecommitdiff
path: root/src/common/thread_group.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-11-09 11:29:06 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-11-09 11:29:06 +0000
commitacf908c8341f62fadf938ffd79f26162e3c0acb5 (patch)
treeb96b774fa8cf3e9589a764818d93da1b8fdafb13 /src/common/thread_group.cpp
parentMerge pull request #1308 (diff)
downloadmonero-acf908c8341f62fadf938ffd79f26162e3c0acb5.tar.xz
thread_group: fix build with asserts enabled
See https://github.com/monero-project/monero/pull/1291
Diffstat (limited to 'src/common/thread_group.cpp')
-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");
}