Lines Matching refs:d_tn
169 struct shared_common *d_tn; in __kmp_common_destroy() local
175 for (d_tn = __kmp_threadprivate_d_table.data[q]; d_tn; in __kmp_common_destroy()
176 d_tn = d_tn->next) { in __kmp_common_destroy()
177 if (d_tn->is_vec) { in __kmp_common_destroy()
178 if (d_tn->dt.dtorv != 0) { in __kmp_common_destroy()
185 d_tn->gbl_addr); in __kmp_common_destroy()
187 (*d_tn->dt.dtorv)(tn->par_addr, d_tn->vec_len); in __kmp_common_destroy()
192 if (d_tn->obj_init != 0) { in __kmp_common_destroy()
193 (*d_tn->dt.dtorv)(d_tn->obj_init, d_tn->vec_len); in __kmp_common_destroy()
197 if (d_tn->dt.dtor != 0) { in __kmp_common_destroy()
204 d_tn->gbl_addr); in __kmp_common_destroy()
206 (*d_tn->dt.dtor)(tn->par_addr); in __kmp_common_destroy()
211 if (d_tn->obj_init != 0) { in __kmp_common_destroy()
212 (*d_tn->dt.dtor)(d_tn->obj_init); in __kmp_common_destroy()
225 struct shared_common *d_tn; in __kmp_common_destroy_gtid() local
244 d_tn = __kmp_find_shared_task_common(&__kmp_threadprivate_d_table, gtid, in __kmp_common_destroy_gtid()
246 if (d_tn == NULL) in __kmp_common_destroy_gtid()
248 if (d_tn->is_vec) { in __kmp_common_destroy_gtid()
249 if (d_tn->dt.dtorv != 0) { in __kmp_common_destroy_gtid()
250 (void)(*d_tn->dt.dtorv)(tn->par_addr, d_tn->vec_len); in __kmp_common_destroy_gtid()
251 if (d_tn->obj_init != 0) { in __kmp_common_destroy_gtid()
252 (void)(*d_tn->dt.dtorv)(d_tn->obj_init, d_tn->vec_len); in __kmp_common_destroy_gtid()
256 if (d_tn->dt.dtor != 0) { in __kmp_common_destroy_gtid()
257 (void)(*d_tn->dt.dtor)(tn->par_addr); in __kmp_common_destroy_gtid()
258 if (d_tn->obj_init != 0) { in __kmp_common_destroy_gtid()
259 (void)(*d_tn->dt.dtor)(d_tn->obj_init); in __kmp_common_destroy_gtid()
299 struct shared_common **lnk_tn, *d_tn; in kmp_threadprivate_insert_private_data() local
303 d_tn = __kmp_find_shared_task_common(&__kmp_threadprivate_d_table, gtid, in kmp_threadprivate_insert_private_data()
306 if (d_tn == 0) { in kmp_threadprivate_insert_private_data()
307 d_tn = (struct shared_common *)__kmp_allocate(sizeof(struct shared_common)); in kmp_threadprivate_insert_private_data()
309 d_tn->gbl_addr = pc_addr; in kmp_threadprivate_insert_private_data()
310 d_tn->pod_init = __kmp_init_common_data(data_addr, pc_size); in kmp_threadprivate_insert_private_data()
320 d_tn->cmn_size = pc_size; in kmp_threadprivate_insert_private_data()
326 d_tn->next = *lnk_tn; in kmp_threadprivate_insert_private_data()
327 *lnk_tn = d_tn; in kmp_threadprivate_insert_private_data()
337 struct shared_common *d_tn; in kmp_threadprivate_insert() local
346 d_tn = __kmp_find_shared_task_common( in kmp_threadprivate_insert()
350 if (d_tn != 0) { in kmp_threadprivate_insert()
353 if (d_tn->pod_init == 0 && d_tn->obj_init == 0) { in kmp_threadprivate_insert()
354 d_tn->cmn_size = pc_size; in kmp_threadprivate_insert()
356 if (d_tn->is_vec) { in kmp_threadprivate_insert()
357 if (d_tn->ct.ctorv != 0) { in kmp_threadprivate_insert()
359 d_tn->obj_init = 0; in kmp_threadprivate_insert()
360 } else if (d_tn->cct.cctorv != 0) { in kmp_threadprivate_insert()
363 d_tn->obj_init = (void *)__kmp_allocate(d_tn->cmn_size); in kmp_threadprivate_insert()
364 (void)(*d_tn->cct.cctorv)(d_tn->obj_init, pc_addr, d_tn->vec_len); in kmp_threadprivate_insert()
366 d_tn->pod_init = __kmp_init_common_data(data_addr, d_tn->cmn_size); in kmp_threadprivate_insert()
369 if (d_tn->ct.ctor != 0) { in kmp_threadprivate_insert()
371 d_tn->obj_init = 0; in kmp_threadprivate_insert()
372 } else if (d_tn->cct.cctor != 0) { in kmp_threadprivate_insert()
375 d_tn->obj_init = (void *)__kmp_allocate(d_tn->cmn_size); in kmp_threadprivate_insert()
376 (void)(*d_tn->cct.cctor)(d_tn->obj_init, pc_addr); in kmp_threadprivate_insert()
378 d_tn->pod_init = __kmp_init_common_data(data_addr, d_tn->cmn_size); in kmp_threadprivate_insert()
385 d_tn = (struct shared_common *)__kmp_allocate(sizeof(struct shared_common)); in kmp_threadprivate_insert()
386 d_tn->gbl_addr = pc_addr; in kmp_threadprivate_insert()
387 d_tn->cmn_size = pc_size; in kmp_threadprivate_insert()
388 d_tn->pod_init = __kmp_init_common_data(data_addr, pc_size); in kmp_threadprivate_insert()
400 d_tn->next = *lnk_tn; in kmp_threadprivate_insert()
401 *lnk_tn = d_tn; in kmp_threadprivate_insert()
404 tn->cmn_size = d_tn->cmn_size; in kmp_threadprivate_insert()
416 if (pc_size > d_tn->cmn_size) { in kmp_threadprivate_insert()
420 pc_addr, pc_size, d_tn->cmn_size)); in kmp_threadprivate_insert()
464 if (d_tn->is_vec) { in kmp_threadprivate_insert()
465 if (d_tn->ct.ctorv != 0) { in kmp_threadprivate_insert()
466 (void)(*d_tn->ct.ctorv)(tn->par_addr, d_tn->vec_len); in kmp_threadprivate_insert()
467 } else if (d_tn->cct.cctorv != 0) { in kmp_threadprivate_insert()
468 (void)(*d_tn->cct.cctorv)(tn->par_addr, d_tn->obj_init, d_tn->vec_len); in kmp_threadprivate_insert()
470 __kmp_copy_common_data(tn->par_addr, d_tn->pod_init); in kmp_threadprivate_insert()
473 if (d_tn->ct.ctor != 0) { in kmp_threadprivate_insert()
474 (void)(*d_tn->ct.ctor)(tn->par_addr); in kmp_threadprivate_insert()
475 } else if (d_tn->cct.cctor != 0) { in kmp_threadprivate_insert()
476 (void)(*d_tn->cct.cctor)(tn->par_addr, d_tn->obj_init); in kmp_threadprivate_insert()
478 __kmp_copy_common_data(tn->par_addr, d_tn->pod_init); in kmp_threadprivate_insert()
506 struct shared_common *d_tn, **lnk_tn; in __kmpc_threadprivate_register() local
516 d_tn = __kmp_find_shared_task_common(&__kmp_threadprivate_d_table, -1, data); in __kmpc_threadprivate_register()
518 if (d_tn == 0) { in __kmpc_threadprivate_register()
519 d_tn = (struct shared_common *)__kmp_allocate(sizeof(struct shared_common)); in __kmpc_threadprivate_register()
520 d_tn->gbl_addr = data; in __kmpc_threadprivate_register()
522 d_tn->ct.ctor = ctor; in __kmpc_threadprivate_register()
523 d_tn->cct.cctor = cctor; in __kmpc_threadprivate_register()
524 d_tn->dt.dtor = dtor; in __kmpc_threadprivate_register()
534 d_tn->next = *lnk_tn; in __kmpc_threadprivate_register()
535 *lnk_tn = d_tn; in __kmpc_threadprivate_register()
750 struct shared_common *d_tn, **lnk_tn; in __kmpc_threadprivate_register_vec() local
759 d_tn = __kmp_find_shared_task_common( in __kmpc_threadprivate_register_vec()
763 if (d_tn == 0) { in __kmpc_threadprivate_register_vec()
764 d_tn = (struct shared_common *)__kmp_allocate(sizeof(struct shared_common)); in __kmpc_threadprivate_register_vec()
765 d_tn->gbl_addr = data; in __kmpc_threadprivate_register_vec()
767 d_tn->ct.ctorv = ctor; in __kmpc_threadprivate_register_vec()
768 d_tn->cct.cctorv = cctor; in __kmpc_threadprivate_register_vec()
769 d_tn->dt.dtorv = dtor; in __kmpc_threadprivate_register_vec()
770 d_tn->is_vec = TRUE; in __kmpc_threadprivate_register_vec()
771 d_tn->vec_len = (size_t)vector_length; in __kmpc_threadprivate_register_vec()
776 d_tn->next = *lnk_tn; in __kmpc_threadprivate_register_vec()
777 *lnk_tn = d_tn; in __kmpc_threadprivate_register_vec()