diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-11-09 14:13:35 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-11-09 14:13:35 +0200 |
commit | 38727f7d2ff178e46c04f44b067259df2b33e293 (patch) | |
tree | 1210179a38c194277cc6f86b0fa44d807b13ee23 | |
parent | Merge pull request #1311 (diff) | |
parent | thread_group: fix build with asserts enabled (diff) | |
download | monero-38727f7d2ff178e46c04f44b067259df2b33e293.tar.xz |
Merge pull request #1312
acf908c thread_group: fix build with asserts enabled (moneromooo-monero)
-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"); } |