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