shithub: npe

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