Lines Matching refs:gc

178     static bool erase_if_present(control_storage* const c, d1::global_control& gc) {  in erase_if_present()
179 auto it = c->my_list.find(&gc); in erase_if_present()
189 static void create(d1::global_control& gc) { in create()
190 __TBB_ASSERT_RELEASE(gc.my_param < d1::global_control::parameter_max, nullptr); in create()
191 control_storage* const c = controls[gc.my_param]; in create()
194 if (c->my_list.empty() || c->is_first_arg_preferred(gc.my_value, c->my_active_value)) { in create()
197 c->apply_active(gc.my_value); in create()
199 c->my_list.insert(&gc); in create()
202 static void destroy(d1::global_control& gc) { in destroy()
203 __TBB_ASSERT_RELEASE(gc.my_param < d1::global_control::parameter_max, nullptr); in destroy()
204 control_storage* const c = controls[gc.my_param]; in destroy()
207 … __TBB_ASSERT(gc.my_param == d1::global_control::scheduler_handle || !c->my_list.empty(), nullptr); in destroy()
210 if (!erase_if_present(c, gc)) { in destroy()
211 __TBB_ASSERT(gc.my_param == d1::global_control::scheduler_handle , nullptr); in destroy()
225 static bool remove_and_check_if_empty(d1::global_control& gc) { in remove_and_check_if_empty()
226 __TBB_ASSERT_RELEASE(gc.my_param < d1::global_control::parameter_max, nullptr); in remove_and_check_if_empty()
227 control_storage* const c = controls[gc.my_param]; in remove_and_check_if_empty()
231 erase_if_present(c, gc); in remove_and_check_if_empty()
235 static bool is_present(d1::global_control& gc) { in is_present()
236 __TBB_ASSERT_RELEASE(gc.my_param < d1::global_control::parameter_max, nullptr); in is_present()
237 control_storage* const c = controls[gc.my_param]; in is_present()
240 auto it = c->my_list.find(&gc); in is_present()
249 void __TBB_EXPORTED_FUNC create(d1::global_control& gc) { in create() argument
250 global_control_impl::create(gc); in create()
252 void __TBB_EXPORTED_FUNC destroy(d1::global_control& gc) { in destroy() argument
253 global_control_impl::destroy(gc); in destroy()
256 bool remove_and_check_if_empty(d1::global_control& gc) { in remove_and_check_if_empty() argument
257 return global_control_impl::remove_and_check_if_empty(gc); in remove_and_check_if_empty()
260 bool is_present(d1::global_control& gc) { in is_present() argument
261 return global_control_impl::is_present(gc); in is_present()