Lines Matching refs:start
79 struct start_arg start; in thread_new_sized() local
80 start.start_sem = semaphore_new(0); in thread_new_sized()
81 if (!start.start_sem) in thread_new_sized()
85 start.thread = ret; in thread_new_sized()
86 start.error = 0; in thread_new_sized()
87 pthread_create(&ret->pthread, NULL, run_thread, &start); in thread_new_sized()
88 semaphore_wait(start.start_sem); in thread_new_sized()
89 semaphore_free(start.start_sem); in thread_new_sized()
91 if (start.error) in thread_new_sized()
185 struct start_arg *start = start_arg; in run_thread() local
186 thread_t *thread = start->thread; in run_thread()
192 start->error = errno; in run_thread()
193 semaphore_post(start->start_sem); in run_thread()
200 semaphore_post(start->start_sem); in run_thread()