shithub: npe

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