Lines Matching refs:state
58 …__TBB_ASSERT(ctx.my_state.load(std::memory_order_relaxed) == d1::task_group_context::state::bound,… in destroy()
81 ctx.my_state.store(d1::task_group_context::state::dead, std::memory_order_release); in destroy()
93 ctx.my_state.store(d1::task_group_context::state::created, std::memory_order_relaxed); in initialize()
115 …__TBB_ASSERT(ctx.my_state.load(std::memory_order_relaxed) == d1::task_group_context::state::locked… in bind_to_impl()
166 d1::task_group_context::state state = ctx.my_state.load(std::memory_order_acquire); in bind_to() local
167 if (state <= d1::task_group_context::state::locked) { in bind_to()
168 if (state == d1::task_group_context::state::created && in bind_to()
170 …((std::atomic<typename std::underlying_type<d1::task_group_context::state>::type>&)ctx.my_state).c… in bind_to()
171 (typename std::underlying_type<d1::task_group_context::state>::type&)state, in bind_to()
172 …(typename std::underlying_type<d1::task_group_context::state>::type)d1::task_group_context::state:… in bind_to()
174 ctx.my_state.compare_exchange_strong(state, d1::task_group_context::state::locked) in bind_to()
181 d1::task_group_context::state release_state{}; in bind_to()
186 release_state = d1::task_group_context::state::isolated; in bind_to()
189 release_state = d1::task_group_context::state::bound; in bind_to()
194 spin_wait_while_eq(ctx.my_state, d1::task_group_context::state::locked); in bind_to()
196 …__TBB_ASSERT(ctx.my_state.load(std::memory_order_relaxed) != d1::task_group_context::state::create… in bind_to()
197 …__TBB_ASSERT(ctx.my_state.load(std::memory_order_relaxed) != d1::task_group_context::state::locked… in bind_to()