Lines Matching refs:new_thr

4339   kmp_info_t *new_thr;  in __kmp_allocate_thread()  local
4351 new_thr = CCAST(kmp_info_t *, __kmp_thread_pool); in __kmp_allocate_thread()
4352 __kmp_thread_pool = (volatile kmp_info_t *)new_thr->th.th_next_pool; in __kmp_allocate_thread()
4353 if (new_thr == __kmp_thread_pool_insert_pt) { in __kmp_allocate_thread()
4356 TCW_4(new_thr->th.th_in_pool, FALSE); in __kmp_allocate_thread()
4357 __kmp_suspend_initialize_thread(new_thr); in __kmp_allocate_thread()
4358 __kmp_lock_suspend_mx(new_thr); in __kmp_allocate_thread()
4359 if (new_thr->th.th_active_in_pool == TRUE) { in __kmp_allocate_thread()
4360 KMP_DEBUG_ASSERT(new_thr->th.th_active == TRUE); in __kmp_allocate_thread()
4362 new_thr->th.th_active_in_pool = FALSE; in __kmp_allocate_thread()
4364 __kmp_unlock_suspend_mx(new_thr); in __kmp_allocate_thread()
4367 __kmp_get_gtid(), new_thr->th.th_info.ds.ds_gtid)); in __kmp_allocate_thread()
4368 KMP_ASSERT(!new_thr->th.th_team); in __kmp_allocate_thread()
4372 __kmp_initialize_info(new_thr, team, new_tid, in __kmp_allocate_thread()
4373 new_thr->th.th_info.ds.ds_gtid); in __kmp_allocate_thread()
4374 KMP_DEBUG_ASSERT(new_thr->th.th_serial_team); in __kmp_allocate_thread()
4378 new_thr->th.th_task_state = 0; in __kmp_allocate_thread()
4379 new_thr->th.th_task_state_top = 0; in __kmp_allocate_thread()
4380 new_thr->th.th_task_state_stack_sz = 4; in __kmp_allocate_thread()
4384 KMP_DEBUG_ASSERT(new_thr->th.th_used_in_team.load() == 0); in __kmp_allocate_thread()
4402 kmp_balign_t *balign = new_thr->th.th_bar; in __kmp_allocate_thread()
4408 __kmp_get_gtid(), new_thr, new_thr->th.th_info.ds.ds_gtid)); in __kmp_allocate_thread()
4411 return new_thr; in __kmp_allocate_thread()
4466 new_thr = (kmp_info_t *)__kmp_allocate(sizeof(kmp_info_t)); in __kmp_allocate_thread()
4468 TCW_SYNC_PTR(__kmp_threads[new_gtid], new_thr); in __kmp_allocate_thread()
4475 &new_thr->th.th_sleep_loc, sizeof(new_thr->th.th_sleep_loc)); in __kmp_allocate_thread()
4478 &new_thr->th.th_reap_state, sizeof(new_thr->th.th_reap_state)); in __kmp_allocate_thread()
4482 &new_thr->th.th_suspend_init, sizeof(new_thr->th.th_suspend_init)); in __kmp_allocate_thread()
4486 &new_thr->th.th_suspend_init_count, in __kmp_allocate_thread()
4487 sizeof(new_thr->th.th_suspend_init_count)); in __kmp_allocate_thread()
4492 CCAST(kmp_uint64 *, &new_thr->th.th_bar[0].bb.b_go), in __kmp_allocate_thread()
4493 sizeof(new_thr->th.th_bar[0].bb.b_go)); in __kmp_allocate_thread()
4496 CCAST(kmp_uint64 *, &new_thr->th.th_bar[1].bb.b_go), in __kmp_allocate_thread()
4497 sizeof(new_thr->th.th_bar[1].bb.b_go)); in __kmp_allocate_thread()
4500 CCAST(kmp_uint64 *, &new_thr->th.th_bar[2].bb.b_go), in __kmp_allocate_thread()
4501 sizeof(new_thr->th.th_bar[2].bb.b_go)); in __kmp_allocate_thread()
4504 __kmp_print_thread_storage_map(new_thr, new_gtid); in __kmp_allocate_thread()
4511 new_thr->th.th_serial_team = serial_team = in __kmp_allocate_thread()
4522 serial_team->t.t_threads[0] = new_thr; in __kmp_allocate_thread()
4525 new_thr)); in __kmp_allocate_thread()
4528 __kmp_initialize_info(new_thr, team, new_tid, new_gtid); in __kmp_allocate_thread()
4531 __kmp_initialize_fast_memory(new_thr); in __kmp_allocate_thread()
4535 KMP_DEBUG_ASSERT(new_thr->th.th_local.bget_data == NULL); in __kmp_allocate_thread()
4536 __kmp_initialize_bget(new_thr); in __kmp_allocate_thread()
4539 __kmp_init_random(new_thr); // Initialize random number generator in __kmp_allocate_thread()
4547 kmp_balign_t *balign = new_thr->th.th_bar; in __kmp_allocate_thread()
4555 TCW_PTR(new_thr->th.th_sleep_loc, NULL); in __kmp_allocate_thread()
4556 new_thr->th.th_sleep_loc_type = flag_unset; in __kmp_allocate_thread()
4558 new_thr->th.th_spin_here = FALSE; in __kmp_allocate_thread()
4559 new_thr->th.th_next_waiting = 0; in __kmp_allocate_thread()
4561 new_thr->th.th_blocking = false; in __kmp_allocate_thread()
4565 new_thr->th.th_current_place = KMP_PLACE_UNDEFINED; in __kmp_allocate_thread()
4566 new_thr->th.th_new_place = KMP_PLACE_UNDEFINED; in __kmp_allocate_thread()
4567 new_thr->th.th_first_place = KMP_PLACE_UNDEFINED; in __kmp_allocate_thread()
4568 new_thr->th.th_last_place = KMP_PLACE_UNDEFINED; in __kmp_allocate_thread()
4570 new_thr->th.th_def_allocator = __kmp_def_allocator; in __kmp_allocate_thread()
4571 new_thr->th.th_prev_level = 0; in __kmp_allocate_thread()
4572 new_thr->th.th_prev_num_threads = 1; in __kmp_allocate_thread()
4574 TCW_4(new_thr->th.th_in_pool, FALSE); in __kmp_allocate_thread()
4575 new_thr->th.th_active_in_pool = FALSE; in __kmp_allocate_thread()
4576 TCW_4(new_thr->th.th_active, TRUE); in __kmp_allocate_thread()
4608 10, ("__kmp_allocate_thread: before __kmp_create_worker: %p\n", new_thr)); in __kmp_allocate_thread()
4609 __kmp_create_worker(new_gtid, new_thr, __kmp_stksize); in __kmp_allocate_thread()
4611 ("__kmp_allocate_thread: after __kmp_create_worker: %p\n", new_thr)); in __kmp_allocate_thread()
4616 return new_thr; in __kmp_allocate_thread()