• Home
  • Raw
  • Download

Lines Matching refs:gtid

21 void kmp_threadprivate_insert_private_data(int gtid, void *pc_addr,
23 struct private_common *kmp_threadprivate_insert(int gtid, void *pc_addr,
34 __kmp_threadprivate_find_task_common(struct common_table *tbl, int gtid, in __kmp_threadprivate_find_task_common() argument
43 gtid, pc_addr)); in __kmp_threadprivate_find_task_common()
52 gtid, pc_addr)); in __kmp_threadprivate_find_task_common()
65 __kmp_find_shared_task_common(struct shared_table *tbl, int gtid, in __kmp_find_shared_task_common() argument
75 gtid, pc_addr)); in __kmp_find_shared_task_common()
134 int gtid; in __kmp_common_initialize() local
141 for (gtid = 0; gtid < __kmp_threads_capacity; gtid++) in __kmp_common_initialize()
142 if (__kmp_root[gtid]) { in __kmp_common_initialize()
143 KMP_DEBUG_ASSERT(__kmp_root[gtid]->r.r_uber_thread); in __kmp_common_initialize()
146 !__kmp_root[gtid]->r.r_uber_thread->th.th_pri_common->data[q]); in __kmp_common_initialize()
168 int gtid; in __kmp_common_destroy() local
180 for (gtid = 0; gtid < __kmp_all_nth; ++gtid) { in __kmp_common_destroy()
181 if (__kmp_threads[gtid]) { in __kmp_common_destroy()
182 if ((__kmp_foreign_tp) ? (!KMP_INITIAL_GTID(gtid)) in __kmp_common_destroy()
183 : (!KMP_UBER_GTID(gtid))) { in __kmp_common_destroy()
185 __kmp_threads[gtid]->th.th_pri_common, gtid, in __kmp_common_destroy()
199 for (gtid = 0; gtid < __kmp_all_nth; ++gtid) { in __kmp_common_destroy()
200 if (__kmp_threads[gtid]) { in __kmp_common_destroy()
201 if ((__kmp_foreign_tp) ? (!KMP_INITIAL_GTID(gtid)) in __kmp_common_destroy()
202 : (!KMP_UBER_GTID(gtid))) { in __kmp_common_destroy()
204 __kmp_threads[gtid]->th.th_pri_common, gtid, in __kmp_common_destroy()
224 void __kmp_common_destroy_gtid(int gtid) { in __kmp_common_destroy_gtid() argument
235 KC_TRACE(10, ("__kmp_common_destroy_gtid: T#%d called\n", gtid)); in __kmp_common_destroy_gtid()
236 if ((__kmp_foreign_tp) ? (!KMP_INITIAL_GTID(gtid)) : (!KMP_UBER_GTID(gtid))) { in __kmp_common_destroy_gtid()
243 for (tn = __kmp_threads[gtid]->th.th_pri_head; tn; tn = tn->link) { in __kmp_common_destroy_gtid()
245 d_tn = __kmp_find_shared_task_common(&__kmp_threadprivate_d_table, gtid, in __kmp_common_destroy_gtid()
267 gtid)); in __kmp_common_destroy_gtid()
298 void kmp_threadprivate_insert_private_data(int gtid, void *pc_addr, in kmp_threadprivate_insert_private_data() argument
301 KMP_DEBUG_ASSERT(__kmp_threads[gtid] && in kmp_threadprivate_insert_private_data()
302 __kmp_threads[gtid]->th.th_root->r.r_active == 0); in kmp_threadprivate_insert_private_data()
304 d_tn = __kmp_find_shared_task_common(&__kmp_threadprivate_d_table, gtid, in kmp_threadprivate_insert_private_data()
323 __kmp_acquire_lock(&__kmp_global_lock, gtid); in kmp_threadprivate_insert_private_data()
330 __kmp_release_lock(&__kmp_global_lock, gtid); in kmp_threadprivate_insert_private_data()
334 struct private_common *kmp_threadprivate_insert(int gtid, void *pc_addr, in kmp_threadprivate_insert() argument
341 __kmp_acquire_lock(&__kmp_global_lock, gtid); in kmp_threadprivate_insert()
348 &__kmp_threadprivate_d_table, gtid, in kmp_threadprivate_insert()
407 if ((__kmp_foreign_tp) ? (KMP_INITIAL_GTID(gtid)) : (KMP_UBER_GTID(gtid))) { in kmp_threadprivate_insert()
413 __kmp_release_lock(&__kmp_global_lock, gtid); in kmp_threadprivate_insert()
426 tt = &(__kmp_threads[gtid]->th.th_pri_common->data[KMP_HASH(pc_addr)]); in kmp_threadprivate_insert()
433 gtid, pc_addr)); in kmp_threadprivate_insert()
442 gtid, pc_addr)); in kmp_threadprivate_insert()
448 tn->link = __kmp_threads[gtid]->th.th_pri_head; in kmp_threadprivate_insert()
449 __kmp_threads[gtid]->th.th_pri_head = tn; in kmp_threadprivate_insert()
451 if ((__kmp_foreign_tp) ? (KMP_INITIAL_GTID(gtid)) : (KMP_UBER_GTID(gtid))) in kmp_threadprivate_insert()