Lines Matching refs:start
80 struct start_arg start; in thread_new_sized() local
81 start.start_sem = semaphore_new(0); in thread_new_sized()
82 if (!start.start_sem) goto error; 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) goto error; in thread_new_sized()
195 struct start_arg* start = static_cast<struct start_arg*>(start_arg); in run_thread() local
196 thread_t* thread = start->thread; in run_thread()
202 start->error = errno; in run_thread()
203 semaphore_post(start->start_sem); in run_thread()
211 semaphore_post(start->start_sem); in run_thread()