ref: b9dcbb8b9ff5526f470d5825043752f28533217b 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; }