int pthread_join(pthread_t thread, void **value_ptr) { assert( thread ); // XXX Need to get return value if value_ptr != NULL. if (thd_wait(thread) < 0) return ESRCH; else return 0; }
void sndoggvorbis_shutdown() { if (!thd) { printf("sndserver: not initialized!\n"); return; } sndoggvorbis_thd_quit(); thd_wait(thd); thd = NULL; printf("sndserver: exited successfully\n"); }
void SDL_SYS_WaitThread(SDL_Thread *thread) { thd_wait(thread->handle); }