ref: 004f6f57af8b5bbc2ff07b0f8fce148ba4c1c24d
dir: /libnpe_pthread/pthread_join.c/
#include "_pthread.h" int pthread_join(pthread_t pt, void **res) { npe_pthread_t *t; t = (npe_pthread_t*)pt; if(t->waitchan != nil) recv(t->waitchan, res); return 0; }