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