shithub: npe

ref: 086f757bc0f6c51c01e6300ce0370d774e6f9864
dir: /libnpe_pthread/pthread_join.c/

View raw version
#include "_pthread.h"

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

	return 0;
}