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