Lines Matching defs:new
238 struct pthread *self, *new;
299 new = __copy_tls(tsd - libc.tls_size);
300 new->map_base = map;
301 new->map_size = size;
302 new->stack = stack;
303 new->stack_size = stack - stack_limit;
304 new->guard_size = guard;
305 new->self = new;
306 new->tsd = (void *)tsd;
307 new->locale = &libc.global_locale;
309 new->detach_state = DT_DETACHED;
311 new->detach_state = DT_JOINABLE;
313 new->robust_list.head = &new->robust_list.head;
314 new->canary = self->canary;
315 new->sysinfo = self->sysinfo;
317 /* Setup argument structure for the new thread on its stack.
332 /* Ensure SIGCANCEL is unblocked in new thread. This requires
341 ret = __thread_clone((c11 ? start_c11 : start), flags, new, stack);
350 new->next = self->next;
351 new->prev = self;
352 new->next->prev = new;
353 new->prev->next = new;
355 *res = new;
360 new->tid, attr._a_policy, &attr._a_prio, MUSL_TYPE_THREAD);