Lines Matching refs:context
89 … __TBB_ASSERT(ed.context == &this->ctx(), "The task group context should be used for all tasks"); in execute()
504 execute_and_wait(t, context(), m_wait_ctx, context()); in internal_run_and_wait()
507 cancellation_status = context().is_group_execution_cancelled(); in internal_run_and_wait()
508 context().reset(); in internal_run_and_wait()
517 …__TBB_ASSERT(&acs::ctx_of(h) == &context(), "Attempt to schedule task_handle into different task_g… in internal_run_and_wait()
521 execute_and_wait(*acs::release(h), context(), m_wait_ctx, context()); in internal_run_and_wait()
524 cancellation_status = context().is_group_execution_cancelled(); in internal_run_and_wait()
525 context().reset(); in internal_run_and_wait()
537 task_group_context& context() noexcept { in context() function
546 …tion_task_p = alloc.new_object<function_task_t>(std::forward<F>(f), m_wait_ctx, context(), alloc); in prepare_task_handle()
571 if (!context().is_group_execution_cancelled()) in noexcept()
573 d1::wait(m_wait_ctx, context()); in noexcept()
582 d1::wait(m_wait_ctx, context()); in wait()
586 context().reset(); in wait()
592 context().cancel_group_execution(); in cancel()
603 spawn(*prepare_task(std::forward<F>(f)), context()); in run()
610 …__TBB_ASSERT(&acs::ctx_of(h) == &context(), "Attempt to schedule task_handle into different task_g… in run()
612 spawn(*acs::release(h), context()); in run()
634 task_group_context& context; variable
636 spawn(*task_to_spawn, context); in operator()
641 : task_to_spawn(a_task), context(ctx) in spawn_delegate()
681 spawn_delegate sd(prepare_task(std::forward<F>(f)), context()); in run()
689 …__TBB_ASSERT(&acs::ctx_of(h) == &context(), "Attempt to schedule task_handle into different task_g… in run()
691 spawn_delegate sd(acs::release(h), context()); in run()