diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-09 11:29:06 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-09 11:29:06 +0000 |
commit | acf908c8341f62fadf938ffd79f26162e3c0acb5 (patch) | |
tree | b96b774fa8cf3e9589a764818d93da1b8fdafb13 /src/common/thread_group.cpp | |
parent | Merge pull request #1308 (diff) | |
download | monero-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.cpp | 2 |
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"); } |