Lines Matching refs:th

325   int ds_tid = this_thr->th.th_info.ds.ds_tid;
327 this_thr->th.ompt_thread_info.state = ompt_state_overhead;
343 int flags = this_thr->th.ompt_thread_info.parallel_flags;
350 this_thr->th.ompt_thread_info.state = ompt_state_idle;
352 this_thr->th.ompt_thread_info.state = ompt_state_overhead;
387 th_gtid = this_thr->th.th_info.ds.ds_gtid;
389 kmp_team_t *team = this_thr->th.th_team;
395 KMP_ATOMIC_ST_REL(&this_thr->th.th_blocking, true);
457 ompt_entry_state = this_thr->th.ompt_thread_info.state;
459 KMP_MASTER_TID(this_thr->th.th_info.ds.ds_tid)) {
461 if (this_thr->th.th_team)
462 team = this_thr->th.th_team->t.ompt_serialized_team_info;
469 tId = &(this_thr->th.ompt_thread_info.task_data);
472 this_thr->th.th_task_team == NULL)) {
489 (__kmp_zero_bt && !this_thr->th.th_team_bt_set))
494 hibernate = this_thr->th.th_team_bt_intervals;
496 hibernate = this_thr->th.th_team_bt_intervals;
516 hibernate_goal = KMP_NOW() + this_thr->th.th_team_bt_intervals;
528 task_team = this_thr->th.th_task_team;
543 this_thr->th.th_reap_state = KMP_SAFE_TO_REAP;
545 KMP_DEBUG_ASSERT(!KMP_MASTER_TID(this_thr->th.th_info.ds.ds_tid));
551 this_thr->th.th_task_team = NULL;
552 this_thr->th.th_reap_state = KMP_SAFE_TO_REAP;
555 this_thr->th.th_reap_state = KMP_SAFE_TO_REAP;
573 if (this_thr->th.th_stats->isIdle() &&
581 kmp_team_t *team = this_thr->th.th_team;
638 KMP_ATOMIC_ST_REL(&this_thr->th.th_blocking, false);
643 KMP_ATOMIC_ST_REL(&this_thr->th.th_blocking, true);
654 this_thr->th.th_reap_state == KMP_SAFE_TO_REAP) {
655 this_thr->th.th_reap_state = KMP_NOT_SAFE_TO_REAP;
661 ompt_state_t ompt_exit_state = this_thr->th.ompt_thread_info.state;
666 ompt_exit_state = this_thr->th.ompt_thread_info.state;
670 this_thr->th.ompt_thread_info.state = ompt_state_overhead;
679 this_thr->th.th_stats->resetIdleFlag();
685 KMP_ATOMIC_ST_REL(&this_thr->th.th_blocking, false);
689 kmp_team_t *team = this_thr->th.th_team;
694 kmp_task_team_t *task_team = this_thr->th.th_task_team;
711 kmp_info_t *th = __kmp_threads[th_gtid];
719 __kmp_suspend_initialize_thread(th);
720 __kmp_lock_suspend_mx(th);
727 th->th.th_active = FALSE;
728 if (th->th.th_active_in_pool) {
729 th->th.th_active_in_pool = FALSE;
751 TCW_PTR(th->th.th_sleep_loc, (void *)flag);
752 th->th.th_sleep_loc_type = flag->get_type();
753 __kmp_unlock_suspend_mx(th);
765 __kmp_lock_suspend_mx(th);
769 TCW_PTR(th->th.th_sleep_loc, NULL);
770 th->th.th_sleep_loc_type = flag_unset;
773 th->th.th_active = TRUE;
774 if (TCR_4(th->th.th_in_pool)) {
776 th->th.th_active_in_pool = TRUE;
779 __kmp_unlock_suspend_mx(th);
809 int wait_gtid = waiter->th.th_info.ds.ds_gtid;
965 if (this_thr->th.th_bar[bt].bb.wait_flag == KMP_BARRIER_SWITCH_TO_OWN_FLAG)
970 this_thr->th.th_bar[bt].bb.wait_flag = KMP_BARRIER_SWITCHING;
971 kmp_flag_64<> flag(&this_thr->th.th_bar[bt].bb.b_go,
1023 void *flag = CCAST(void *, thr->th.th_sleep_loc);
1024 flag_type type = thr->th.th_sleep_loc_type;