void thread_init(void) { thread_zone = zinit( sizeof(struct thread), THREAD_MAX * sizeof(struct thread), THREAD_CHUNK * sizeof(struct thread), "threads"); stack_init(); /* * Initialize any machine-dependent * per-thread structures necessary. */ machine_thread_init(); }
void thread_init(void) { thread_zone = zinit( sizeof(struct thread), thread_max * sizeof(struct thread), THREAD_CHUNK * sizeof(struct thread), "threads"); lck_grp_attr_setdefault(&thread_lck_grp_attr); lck_grp_init(&thread_lck_grp, "thread", &thread_lck_grp_attr); lck_attr_setdefault(&thread_lck_attr); stack_init(); /* * Initialize any machine-dependent * per-thread structures necessary. */ machine_thread_init(); }