Lines Matching refs:th

133   int ds_tid = this_thr->th.th_info.ds.ds_tid;  in __ompt_implicit_task_end()
135 this_thr->th.ompt_thread_info.state = ompt_state_overhead; in __ompt_implicit_task_end()
151 int flags = this_thr->th.ompt_thread_info.parallel_flags; in __ompt_implicit_task_end()
158 this_thr->th.ompt_thread_info.state = ompt_state_idle; in __ompt_implicit_task_end()
160 this_thr->th.ompt_thread_info.state = ompt_state_overhead; in __ompt_implicit_task_end()
195 th_gtid = this_thr->th.th_info.ds.ds_gtid; in __kmp_wait_template()
197 kmp_team_t *team = this_thr->th.th_team; in __kmp_wait_template()
203 KMP_ATOMIC_ST_REL(&this_thr->th.th_blocking, true); in __kmp_wait_template()
265 ompt_entry_state = this_thr->th.ompt_thread_info.state; in __kmp_wait_template()
267 KMP_MASTER_TID(this_thr->th.th_info.ds.ds_tid)) { in __kmp_wait_template()
269 this_thr->th.th_team->t.ompt_serialized_team_info; in __kmp_wait_template()
276 tId = &(this_thr->th.ompt_thread_info.task_data); in __kmp_wait_template()
279 this_thr->th.th_task_team == NULL)) { in __kmp_wait_template()
295 (__kmp_zero_bt && !this_thr->th.th_team_bt_set)) in __kmp_wait_template()
300 hibernate = this_thr->th.th_team_bt_intervals; in __kmp_wait_template()
302 hibernate = this_thr->th.th_team_bt_intervals; in __kmp_wait_template()
322 hibernate_goal = KMP_NOW() + this_thr->th.th_team_bt_intervals; in __kmp_wait_template()
334 task_team = this_thr->th.th_task_team; in __kmp_wait_template()
349 this_thr->th.th_reap_state = KMP_SAFE_TO_REAP; in __kmp_wait_template()
351 KMP_DEBUG_ASSERT(!KMP_MASTER_TID(this_thr->th.th_info.ds.ds_tid)); in __kmp_wait_template()
357 this_thr->th.th_task_team = NULL; in __kmp_wait_template()
358 this_thr->th.th_reap_state = KMP_SAFE_TO_REAP; in __kmp_wait_template()
361 this_thr->th.th_reap_state = KMP_SAFE_TO_REAP; in __kmp_wait_template()
379 if (this_thr->th.th_stats->isIdle() && in __kmp_wait_template()
387 kmp_team_t *team = this_thr->th.th_team; in __kmp_wait_template()
427 KMP_ATOMIC_ST_REL(&this_thr->th.th_blocking, false); in __kmp_wait_template()
432 KMP_ATOMIC_ST_REL(&this_thr->th.th_blocking, true); in __kmp_wait_template()
443 this_thr->th.th_reap_state == KMP_SAFE_TO_REAP) { in __kmp_wait_template()
444 this_thr->th.th_reap_state = KMP_NOT_SAFE_TO_REAP; in __kmp_wait_template()
450 ompt_state_t ompt_exit_state = this_thr->th.ompt_thread_info.state; in __kmp_wait_template()
455 ompt_exit_state = this_thr->th.ompt_thread_info.state; in __kmp_wait_template()
459 this_thr->th.ompt_thread_info.state = ompt_state_overhead; in __kmp_wait_template()
468 this_thr->th.th_stats->resetIdleFlag(); in __kmp_wait_template()
474 KMP_ATOMIC_ST_REL(&this_thr->th.th_blocking, false); in __kmp_wait_template()
478 kmp_team_t *team = this_thr->th.th_team; in __kmp_wait_template()
483 kmp_task_team_t *task_team = this_thr->th.th_task_team; in __kmp_wait_template()
500 kmp_info_t *th = __kmp_threads[th_gtid]; in __kmp_mwait_template() local
508 __kmp_suspend_initialize_thread(th); in __kmp_mwait_template()
509 __kmp_lock_suspend_mx(th); in __kmp_mwait_template()
516 th->th.th_active = FALSE; in __kmp_mwait_template()
517 if (th->th.th_active_in_pool) { in __kmp_mwait_template()
518 th->th.th_active_in_pool = FALSE; in __kmp_mwait_template()
540 TCW_PTR(th->th.th_sleep_loc, (void *)flag); in __kmp_mwait_template()
541 __kmp_unlock_suspend_mx(th); in __kmp_mwait_template()
553 __kmp_lock_suspend_mx(th); in __kmp_mwait_template()
557 TCW_PTR(th->th.th_sleep_loc, NULL); in __kmp_mwait_template()
560 th->th.th_active = TRUE; in __kmp_mwait_template()
561 if (TCR_4(th->th.th_in_pool)) { in __kmp_mwait_template()
563 th->th.th_active_in_pool = TRUE; in __kmp_mwait_template()
566 __kmp_unlock_suspend_mx(th); in __kmp_mwait_template()
596 int wait_gtid = waiter->th.th_info.ds.ds_gtid; in __kmp_release_template()
959 if (this_thr->th.th_bar[bt].bb.wait_flag == KMP_BARRIER_SWITCH_TO_OWN_FLAG)
964 this_thr->th.th_bar[bt].bb.wait_flag = KMP_BARRIER_SWITCHING;
965 kmp_flag_64<> flag(&this_thr->th.th_bar[bt].bb.b_go,