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