Lines Matching refs:this_th

5866 void __kmp_free_thread(kmp_info_t *this_th) {  in __kmp_free_thread()  argument
5871 __kmp_get_gtid(), this_th->th.th_info.ds.ds_gtid)); in __kmp_free_thread()
5873 KMP_DEBUG_ASSERT(this_th); in __kmp_free_thread()
5878 kmp_balign_t *balign = this_th->th.th_bar; in __kmp_free_thread()
5885 this_th->th.th_task_state = 0; in __kmp_free_thread()
5886 this_th->th.th_reap_state = KMP_SAFE_TO_REAP; in __kmp_free_thread()
5889 TCW_PTR(this_th->th.th_team, NULL); in __kmp_free_thread()
5890 TCW_PTR(this_th->th.th_root, NULL); in __kmp_free_thread()
5891 TCW_PTR(this_th->th.th_dispatch, NULL); /* NOT NEEDED */ in __kmp_free_thread()
5893 while (this_th->th.th_cg_roots) { in __kmp_free_thread()
5894 this_th->th.th_cg_roots->cg_nthreads--; in __kmp_free_thread()
5897 this_th, this_th->th.th_cg_roots, in __kmp_free_thread()
5898 this_th->th.th_cg_roots->cg_root, in __kmp_free_thread()
5899 this_th->th.th_cg_roots->cg_nthreads)); in __kmp_free_thread()
5900 kmp_cg_root_t *tmp = this_th->th.th_cg_roots; in __kmp_free_thread()
5901 if (tmp->cg_root == this_th) { // Thread is a cg_root in __kmp_free_thread()
5904 5, ("__kmp_free_thread: Thread %p freeing node %p\n", this_th, tmp)); in __kmp_free_thread()
5905 this_th->th.th_cg_roots = tmp->up; in __kmp_free_thread()
5911 this_th->th.th_cg_roots = NULL; in __kmp_free_thread()
5921 __kmp_free_implicit_task(this_th); in __kmp_free_thread()
5922 this_th->th.th_current_task = NULL; in __kmp_free_thread()
5926 gtid = this_th->th.th_info.ds.ds_gtid; in __kmp_free_thread()
5950 TCW_PTR(this_th->th.th_next_pool, *scan); in __kmp_free_thread()
5951 __kmp_thread_pool_insert_pt = *scan = this_th; in __kmp_free_thread()
5952 KMP_DEBUG_ASSERT((this_th->th.th_next_pool == NULL) || in __kmp_free_thread()
5953 (this_th->th.th_info.ds.ds_gtid < in __kmp_free_thread()
5954 this_th->th.th_next_pool->th.th_info.ds.ds_gtid)); in __kmp_free_thread()
5955 TCW_4(this_th->th.th_in_pool, TRUE); in __kmp_free_thread()
5956 __kmp_suspend_initialize_thread(this_th); in __kmp_free_thread()
5957 __kmp_lock_suspend_mx(this_th); in __kmp_free_thread()
5958 if (this_th->th.th_active == TRUE) { in __kmp_free_thread()
5960 this_th->th.th_active_in_pool = TRUE; in __kmp_free_thread()
5964 KMP_DEBUG_ASSERT(this_th->th.th_active_in_pool == FALSE); in __kmp_free_thread()
5967 __kmp_unlock_suspend_mx(this_th); in __kmp_free_thread()