shithub: npe

ref: c301ec771ed9f63937062178fb1d78d8773c8701
dir: npe/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;
}