diff options
Diffstat (limited to 'src')
-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"); } |