We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 982d9cb commit 803ad72Copy full SHA for 803ad72
src/tbb/task.cpp
@@ -172,6 +172,7 @@ void task_dispatcher::do_post_resume_action() {
172
task_dispatcher* to_cleanup = static_cast<task_dispatcher*>(td->my_post_resume_arg);
173
// Release coroutine's reference to my_arena
174
td->my_arena->on_thread_leaving(arena::ref_external);
175
+ __TBB_ASSERT(is_alive(td->my_arena->my_guard), "The arena should not have been destroyed");
176
// Cache the coroutine for possible later re-usage
177
td->my_arena->my_co_cache.push(to_cleanup);
178
break;
0 commit comments