shithub: npe

ref: facb661abe23b107da939e575aa9f9fbf58ac88b
dir: /libnpe_pthread/pthread_join.c/

View raw version
#include "_pthread.h"

int
pthread_join(pthread_t pt, void **res)
{
	if(pt->waitchan != nil)
		recv(pt->waitchan, res);

	return 0;
}