Lines Matching refs:this_th

5886 void __kmp_free_thread(kmp_info_t *this_th) {  in __kmp_free_thread()  argument
5891 __kmp_get_gtid(), this_th->th.th_info.ds.ds_gtid)); in __kmp_free_thread()
5893 KMP_DEBUG_ASSERT(this_th); in __kmp_free_thread()
5898 kmp_balign_t *balign = this_th->th.th_bar; in __kmp_free_thread()
5905 this_th->th.th_task_state = 0; in __kmp_free_thread()
5906 this_th->th.th_reap_state = KMP_SAFE_TO_REAP; in __kmp_free_thread()
5909 TCW_PTR(this_th->th.th_team, NULL); in __kmp_free_thread()
5910 TCW_PTR(this_th->th.th_root, NULL); in __kmp_free_thread()
5911 TCW_PTR(this_th->th.th_dispatch, NULL); /* NOT NEEDED */ in __kmp_free_thread()
5913 while (this_th->th.th_cg_roots) { in __kmp_free_thread()
5914 this_th->th.th_cg_roots->cg_nthreads--; in __kmp_free_thread()
5917 this_th, this_th->th.th_cg_roots, in __kmp_free_thread()
5918 this_th->th.th_cg_roots->cg_root, in __kmp_free_thread()
5919 this_th->th.th_cg_roots->cg_nthreads)); in __kmp_free_thread()
5920 kmp_cg_root_t *tmp = this_th->th.th_cg_roots; in __kmp_free_thread()
5921 if (tmp->cg_root == this_th) { // Thread is a cg_root in __kmp_free_thread()
5924 5, ("__kmp_free_thread: Thread %p freeing node %p\n", this_th, tmp)); in __kmp_free_thread()
5925 this_th->th.th_cg_roots = tmp->up; in __kmp_free_thread()
5931 this_th->th.th_cg_roots = NULL; in __kmp_free_thread()
5941 __kmp_free_implicit_task(this_th); in __kmp_free_thread()
5942 this_th->th.th_current_task = NULL; in __kmp_free_thread()
5946 gtid = this_th->th.th_info.ds.ds_gtid; in __kmp_free_thread()
5970 TCW_PTR(this_th->th.th_next_pool, *scan); in __kmp_free_thread()
5971 __kmp_thread_pool_insert_pt = *scan = this_th; in __kmp_free_thread()
5972 KMP_DEBUG_ASSERT((this_th->th.th_next_pool == NULL) || in __kmp_free_thread()
5973 (this_th->th.th_info.ds.ds_gtid < in __kmp_free_thread()
5974 this_th->th.th_next_pool->th.th_info.ds.ds_gtid)); in __kmp_free_thread()
5975 TCW_4(this_th->th.th_in_pool, TRUE); in __kmp_free_thread()
5976 __kmp_suspend_initialize_thread(this_th); in __kmp_free_thread()
5977 __kmp_lock_suspend_mx(this_th); in __kmp_free_thread()
5978 if (this_th->th.th_active == TRUE) { in __kmp_free_thread()
5980 this_th->th.th_active_in_pool = TRUE; in __kmp_free_thread()
5984 KMP_DEBUG_ASSERT(this_th->th.th_active_in_pool == FALSE); in __kmp_free_thread()
5987 __kmp_unlock_suspend_mx(this_th); in __kmp_free_thread()