Lines Matching refs:this_th
5830 void __kmp_free_thread(kmp_info_t *this_th) { in __kmp_free_thread() argument
5835 __kmp_get_gtid(), this_th->th.th_info.ds.ds_gtid)); in __kmp_free_thread()
5837 KMP_DEBUG_ASSERT(this_th); in __kmp_free_thread()
5842 kmp_balign_t *balign = this_th->th.th_bar; in __kmp_free_thread()
5849 this_th->th.th_task_state = 0; in __kmp_free_thread()
5850 this_th->th.th_reap_state = KMP_SAFE_TO_REAP; in __kmp_free_thread()
5853 TCW_PTR(this_th->th.th_team, NULL); in __kmp_free_thread()
5854 TCW_PTR(this_th->th.th_root, NULL); in __kmp_free_thread()
5855 TCW_PTR(this_th->th.th_dispatch, NULL); /* NOT NEEDED */ in __kmp_free_thread()
5857 while (this_th->th.th_cg_roots) { in __kmp_free_thread()
5858 this_th->th.th_cg_roots->cg_nthreads--; in __kmp_free_thread()
5861 this_th, this_th->th.th_cg_roots, in __kmp_free_thread()
5862 this_th->th.th_cg_roots->cg_root, in __kmp_free_thread()
5863 this_th->th.th_cg_roots->cg_nthreads)); in __kmp_free_thread()
5864 kmp_cg_root_t *tmp = this_th->th.th_cg_roots; in __kmp_free_thread()
5865 if (tmp->cg_root == this_th) { // Thread is a cg_root in __kmp_free_thread()
5868 5, ("__kmp_free_thread: Thread %p freeing node %p\n", this_th, tmp)); in __kmp_free_thread()
5869 this_th->th.th_cg_roots = tmp->up; in __kmp_free_thread()
5875 this_th->th.th_cg_roots = NULL; in __kmp_free_thread()
5885 __kmp_free_implicit_task(this_th); in __kmp_free_thread()
5886 this_th->th.th_current_task = NULL; in __kmp_free_thread()
5890 gtid = this_th->th.th_info.ds.ds_gtid; in __kmp_free_thread()
5914 TCW_PTR(this_th->th.th_next_pool, *scan); in __kmp_free_thread()
5915 __kmp_thread_pool_insert_pt = *scan = this_th; in __kmp_free_thread()
5916 KMP_DEBUG_ASSERT((this_th->th.th_next_pool == NULL) || in __kmp_free_thread()
5917 (this_th->th.th_info.ds.ds_gtid < in __kmp_free_thread()
5918 this_th->th.th_next_pool->th.th_info.ds.ds_gtid)); in __kmp_free_thread()
5919 TCW_4(this_th->th.th_in_pool, TRUE); in __kmp_free_thread()
5920 __kmp_suspend_initialize_thread(this_th); in __kmp_free_thread()
5921 __kmp_lock_suspend_mx(this_th); in __kmp_free_thread()
5922 if (this_th->th.th_active == TRUE) { in __kmp_free_thread()
5924 this_th->th.th_active_in_pool = TRUE; in __kmp_free_thread()
5928 KMP_DEBUG_ASSERT(this_th->th.th_active_in_pool == FALSE); in __kmp_free_thread()
5931 __kmp_unlock_suspend_mx(this_th); in __kmp_free_thread()