Lines Matching refs:th

44   kmp_info_t *th;  in __kmp_dispatch_deo_error()  local
49 th = __kmp_threads[*gtid_ref]; in __kmp_dispatch_deo_error()
50 if (th->th.th_root->r.r_active && in __kmp_dispatch_deo_error()
51 (th->th.th_dispatch->th_dispatch_pr_current->pushed_ws != ct_none)) { in __kmp_dispatch_deo_error()
62 kmp_info_t *th; in __kmp_dispatch_dxo_error() local
65 th = __kmp_threads[*gtid_ref]; in __kmp_dispatch_dxo_error()
66 if (th->th.th_dispatch->th_dispatch_pr_current->pushed_ws != ct_none) { in __kmp_dispatch_dxo_error()
97 kmp_info_t *th; in __kmp_dispatch_init_algorithm() local
116 th = __kmp_threads[gtid]; in __kmp_dispatch_init_algorithm()
117 team = th->th.th_team; in __kmp_dispatch_init_algorithm()
125 th->th.th_teams_microtask == NULL && in __kmp_dispatch_init_algorithm()
338 KMP_DEBUG_ASSERT(th->th.th_dispatch->th_steal_lock == NULL); in __kmp_dispatch_init_algorithm()
339 th->th.th_dispatch->th_steal_lock = in __kmp_dispatch_init_algorithm()
341 __kmp_init_lock(th->th.th_dispatch->th_steal_lock); in __kmp_dispatch_init_algorithm()
729 kmp_info_t *th; in __kmp_dispatch_init() local
760 th = __kmp_threads[gtid]; in __kmp_dispatch_init()
761 team = th->th.th_team; in __kmp_dispatch_init()
763 th->th.th_ident = loc; in __kmp_dispatch_init()
780 my_buffer_index = th->th.th_dispatch->th_disp_index; in __kmp_dispatch_init()
782 &th->th.th_dispatch in __kmp_dispatch_init()
811 th->th.th_teams_microtask == NULL && in __kmp_dispatch_init()
817 th->th.th_dispatch->th_disp_buffer); /* top of the stack */ in __kmp_dispatch_init()
819 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_init()
820 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_init()
822 my_buffer_index = th->th.th_dispatch->th_disp_index++; in __kmp_dispatch_init()
826 &th->th.th_dispatch in __kmp_dispatch_init()
838 chunk, (T)th->th.th_team_nproc, in __kmp_dispatch_init()
839 (T)th->th.th_info.ds.ds_tid); in __kmp_dispatch_init()
842 th->th.th_dispatch->th_deo_fcn = __kmp_dispatch_deo_error; in __kmp_dispatch_init()
843 th->th.th_dispatch->th_dxo_fcn = __kmp_dispatch_dxo_error; in __kmp_dispatch_init()
845 th->th.th_dispatch->th_deo_fcn = __kmp_dispatch_deo<UT>; in __kmp_dispatch_init()
846 th->th.th_dispatch->th_dxo_fcn = __kmp_dispatch_dxo<UT>; in __kmp_dispatch_init()
866 th->th.th_dispatch->th_dispatch_pr_current = (dispatch_private_info_t *)pr; in __kmp_dispatch_init()
867 th->th.th_dispatch->th_dispatch_sh_current = in __kmp_dispatch_init()
966 kmp_info_t *th = __kmp_threads[gtid]; in __kmp_dispatch_finish() local
969 if (!th->th.th_team->t.t_serialized) { in __kmp_dispatch_finish()
973 th->th.th_dispatch->th_dispatch_pr_current); in __kmp_dispatch_finish()
976 th->th.th_dispatch->th_dispatch_sh_current); in __kmp_dispatch_finish()
979 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_finish()
980 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_finish()
1029 kmp_info_t *th = __kmp_threads[gtid]; in __kmp_dispatch_finish_chunk() local
1032 if (!th->th.th_team->t.t_serialized) { in __kmp_dispatch_finish_chunk()
1036 th->th.th_dispatch->th_dispatch_pr_current); in __kmp_dispatch_finish_chunk()
1039 th->th.th_dispatch->th_dispatch_sh_current); in __kmp_dispatch_finish_chunk()
1042 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_finish_chunk()
1043 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_finish_chunk()
1120 kmp_info_t *th = __kmp_threads[gtid]; in __kmp_dispatch_next_algorithm() local
1121 kmp_team_t *team = th->th.th_team; in __kmp_dispatch_next_algorithm()
1123 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_next_algorithm()
1124 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_next_algorithm()
1164 kmp_lock_t *lck = th->th.th_dispatch->th_steal_lock; in __kmp_dispatch_next_algorithm()
1188 ->th.th_dispatch->th_dispatch_pr_current); in __kmp_dispatch_next_algorithm()
1196 ->th.th_dispatch->th_dispatch_pr_current); in __kmp_dispatch_next_algorithm()
1209 lck = other_threads[victimIdx]->th.th_dispatch->th_steal_lock; in __kmp_dispatch_next_algorithm()
1237 __kmp_acquire_lock(th->th.th_dispatch->th_steal_lock, gtid); in __kmp_dispatch_next_algorithm()
1240 __kmp_release_lock(th->th.th_dispatch->th_steal_lock, gtid); in __kmp_dispatch_next_algorithm()
1288 ->th.th_dispatch->th_dispatch_pr_current); in __kmp_dispatch_next_algorithm()
1296 ->th.th_dispatch->th_dispatch_pr_current); in __kmp_dispatch_next_algorithm()
1870 kmp_info_t *th = __kmp_threads[gtid]; in __kmp_dispatch_next() local
1871 kmp_team_t *team = th->th.th_team; in __kmp_dispatch_next()
1882 th->th.th_dispatch->th_disp_buffer); /* top of the stack */ in __kmp_dispatch_next()
1996 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_next()
1997 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_next()
2000 th->th.th_dispatch->th_dispatch_pr_current); in __kmp_dispatch_next()
2003 th->th.th_dispatch->th_dispatch_sh_current); in __kmp_dispatch_next()
2012 p_st, th->th.th_team_nproc, in __kmp_dispatch_next()
2013 th->th.th_info.ds.ds_tid); in __kmp_dispatch_next()
2034 if ((ST)num_done == th->th.th_team_nproc - 1) { in __kmp_dispatch_next()
2041 for (i = 0; i < th->th.th_team_nproc; ++i) { in __kmp_dispatch_next()
2042 kmp_lock_t *lck = other_threads[i]->th.th_dispatch->th_steal_lock; in __kmp_dispatch_next()
2046 other_threads[i]->th.th_dispatch->th_steal_lock = NULL; in __kmp_dispatch_next()
2077 th->th.th_dispatch->th_deo_fcn = NULL; in __kmp_dispatch_next()
2078 th->th.th_dispatch->th_dxo_fcn = NULL; in __kmp_dispatch_next()
2079 th->th.th_dispatch->th_dispatch_sh_current = NULL; in __kmp_dispatch_next()
2080 th->th.th_dispatch->th_dispatch_pr_current = NULL; in __kmp_dispatch_next()
2121 kmp_info_t *th; in __kmp_dist_get_bounds() local
2157 th = __kmp_threads[gtid]; in __kmp_dist_get_bounds()
2158 team = th->th.th_team; in __kmp_dist_get_bounds()
2160 KMP_DEBUG_ASSERT(th->th.th_teams_microtask); // we are in the teams construct in __kmp_dist_get_bounds()
2161 nteams = th->th.th_teams_size.nteams; in __kmp_dist_get_bounds()