shithub: npe

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