Lines Matching refs:th
325 int ds_tid = this_thr->th.th_info.ds.ds_tid;
328 this_thr->th.ompt_thread_info.state = ompt_state_overhead;
332 if (this_thr->th.ompt_thread_info.parallel_flags & ompt_parallel_league)
345 int flags = this_thr->th.ompt_thread_info.parallel_flags;
352 this_thr->th.ompt_thread_info.state = ompt_state_idle;
354 this_thr->th.ompt_thread_info.state = ompt_state_overhead;
389 th_gtid = this_thr->th.th_info.ds.ds_gtid;
391 kmp_team_t *team = this_thr->th.th_team;
397 KMP_ATOMIC_ST_REL(&this_thr->th.th_blocking, true);
459 ompt_entry_state = this_thr->th.ompt_thread_info.state;
463 KMP_MASTER_TID(this_thr->th.th_info.ds.ds_tid)) {
465 if (this_thr->th.th_team)
466 team = this_thr->th.th_team->t.ompt_serialized_team_info;
473 tId = &(this_thr->th.ompt_thread_info.task_data);
476 this_thr->th.th_task_team == NULL)) {
493 (__kmp_zero_bt && !this_thr->th.th_team_bt_set))
498 hibernate = this_thr->th.th_team_bt_intervals;
500 hibernate = this_thr->th.th_team_bt_intervals;
520 hibernate_goal = KMP_NOW() + this_thr->th.th_team_bt_intervals;
532 task_team = this_thr->th.th_task_team;
547 this_thr->th.th_reap_state = KMP_SAFE_TO_REAP;
549 KMP_DEBUG_ASSERT(!KMP_MASTER_TID(this_thr->th.th_info.ds.ds_tid));
555 this_thr->th.th_task_team = NULL;
556 this_thr->th.th_reap_state = KMP_SAFE_TO_REAP;
559 this_thr->th.th_reap_state = KMP_SAFE_TO_REAP;
577 if (this_thr->th.th_stats->isIdle() &&
585 kmp_team_t *team = this_thr->th.th_team;
642 KMP_ATOMIC_ST_REL(&this_thr->th.th_blocking, false);
647 KMP_ATOMIC_ST_REL(&this_thr->th.th_blocking, true);
658 this_thr->th.th_reap_state == KMP_SAFE_TO_REAP) {
659 this_thr->th.th_reap_state = KMP_NOT_SAFE_TO_REAP;
665 ompt_state_t ompt_exit_state = this_thr->th.ompt_thread_info.state;
670 ompt_exit_state = this_thr->th.ompt_thread_info.state;
674 this_thr->th.ompt_thread_info.state = ompt_state_overhead;
683 this_thr->th.th_stats->resetIdleFlag();
689 KMP_ATOMIC_ST_REL(&this_thr->th.th_blocking, false);
693 kmp_team_t *team = this_thr->th.th_team;
698 kmp_task_team_t *task_team = this_thr->th.th_task_team;
715 kmp_info_t *th = __kmp_threads[th_gtid];
723 __kmp_suspend_initialize_thread(th);
724 __kmp_lock_suspend_mx(th);
731 th->th.th_active = FALSE;
732 if (th->th.th_active_in_pool) {
733 th->th.th_active_in_pool = FALSE;
755 TCW_PTR(th->th.th_sleep_loc, (void *)flag);
756 th->th.th_sleep_loc_type = flag->get_type();
757 __kmp_unlock_suspend_mx(th);
769 __kmp_lock_suspend_mx(th);
773 TCW_PTR(th->th.th_sleep_loc, NULL);
774 th->th.th_sleep_loc_type = flag_unset;
777 th->th.th_active = TRUE;
778 if (TCR_4(th->th.th_in_pool)) {
780 th->th.th_active_in_pool = TRUE;
783 __kmp_unlock_suspend_mx(th);
813 int wait_gtid = waiter->th.th_info.ds.ds_gtid;
969 if (this_thr->th.th_bar[bt].bb.wait_flag == KMP_BARRIER_SWITCH_TO_OWN_FLAG)
974 this_thr->th.th_bar[bt].bb.wait_flag = KMP_BARRIER_SWITCHING;
975 kmp_flag_64<> flag(&this_thr->th.th_bar[bt].bb.b_go,
1027 void *flag = CCAST(void *, thr->th.th_sleep_loc);
1028 flag_type type = thr->th.th_sleep_loc_type;