Lines Matching defs:thread
603 thread_spawn(thread_id_t *thread, void *(fn)(void *), void *arg) {
607 &thread->tid,
614 printf("created pthread 0x%x\n", thread->tid);
616 thread->pid = fork();
617 if (thread->pid == 0) {
624 printf("forked pid %d\n", thread->pid);
629 thread_join(thread_id_t *thread) {
633 printf("joining thread 0x%x\n", thread->tid);
634 ret = pthread_join(thread->tid, NULL);
636 err(1, "pthread_join(0x%x)", thread->tid);
640 printf("waiting for pid %d\n", thread->pid);
641 waitpid(thread->pid, &stat, 0);