reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

projects/openmp/runtime/src/kmp_threadprivate.cpp
  348   d_tn = __kmp_find_shared_task_common(
  352   if (d_tn != 0) {
  355     if (d_tn->pod_init == 0 && d_tn->obj_init == 0) {
  355     if (d_tn->pod_init == 0 && d_tn->obj_init == 0) {
  356       d_tn->cmn_size = pc_size;
  358       if (d_tn->is_vec) {
  359         if (d_tn->ct.ctorv != 0) {
  361           d_tn->obj_init = 0;
  362         } else if (d_tn->cct.cctorv != 0) {
  365           d_tn->obj_init = (void *)__kmp_allocate(d_tn->cmn_size);
  365           d_tn->obj_init = (void *)__kmp_allocate(d_tn->cmn_size);
  366           (void)(*d_tn->cct.cctorv)(d_tn->obj_init, pc_addr, d_tn->vec_len);
  366           (void)(*d_tn->cct.cctorv)(d_tn->obj_init, pc_addr, d_tn->vec_len);
  366           (void)(*d_tn->cct.cctorv)(d_tn->obj_init, pc_addr, d_tn->vec_len);
  368           d_tn->pod_init = __kmp_init_common_data(data_addr, d_tn->cmn_size);
  368           d_tn->pod_init = __kmp_init_common_data(data_addr, d_tn->cmn_size);
  371         if (d_tn->ct.ctor != 0) {
  373           d_tn->obj_init = 0;
  374         } else if (d_tn->cct.cctor != 0) {
  377           d_tn->obj_init = (void *)__kmp_allocate(d_tn->cmn_size);
  377           d_tn->obj_init = (void *)__kmp_allocate(d_tn->cmn_size);
  378           (void)(*d_tn->cct.cctor)(d_tn->obj_init, pc_addr);
  378           (void)(*d_tn->cct.cctor)(d_tn->obj_init, pc_addr);
  380           d_tn->pod_init = __kmp_init_common_data(data_addr, d_tn->cmn_size);
  380           d_tn->pod_init = __kmp_init_common_data(data_addr, d_tn->cmn_size);
  387     d_tn = (struct shared_common *)__kmp_allocate(sizeof(struct shared_common));
  388     d_tn->gbl_addr = pc_addr;
  389     d_tn->cmn_size = pc_size;
  390     d_tn->pod_init = __kmp_init_common_data(data_addr, pc_size);
  402     d_tn->next = *lnk_tn;
  403     *lnk_tn = d_tn;
  406   tn->cmn_size = d_tn->cmn_size;
  418   if (pc_size > d_tn->cmn_size) {
  465   if (d_tn->is_vec) {
  466     if (d_tn->ct.ctorv != 0) {
  467       (void)(*d_tn->ct.ctorv)(tn->par_addr, d_tn->vec_len);
  467       (void)(*d_tn->ct.ctorv)(tn->par_addr, d_tn->vec_len);
  468     } else if (d_tn->cct.cctorv != 0) {
  469       (void)(*d_tn->cct.cctorv)(tn->par_addr, d_tn->obj_init, d_tn->vec_len);
  469       (void)(*d_tn->cct.cctorv)(tn->par_addr, d_tn->obj_init, d_tn->vec_len);
  469       (void)(*d_tn->cct.cctorv)(tn->par_addr, d_tn->obj_init, d_tn->vec_len);
  471       __kmp_copy_common_data(tn->par_addr, d_tn->pod_init);
  474     if (d_tn->ct.ctor != 0) {
  475       (void)(*d_tn->ct.ctor)(tn->par_addr);
  476     } else if (d_tn->cct.cctor != 0) {
  477       (void)(*d_tn->cct.cctor)(tn->par_addr, d_tn->obj_init);
  477       (void)(*d_tn->cct.cctor)(tn->par_addr, d_tn->obj_init);
  479       __kmp_copy_common_data(tn->par_addr, d_tn->pod_init);