mailing list of musl libc
 help / color / mirror / code / Atom feed
719c91ca24f7b03f729657a27208e10e3bf1c020 blob 298 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 
#include "pthread_impl.h"
#include <sys/mman.h>

static void dummy(void *p)
{
}

int pthread_join(pthread_t t, void **res)
{
	int tmp;
	while ((tmp = t->tid)) __timedwait(&t->tid, tmp, 0, 0, dummy, 0, 0);
	if (res) *res = t->result;
	if (t->map_base) munmap(t->map_base, t->map_size);
	return 0;
}
debug log:

solving 719c91c ...
found 719c91c in https://git.vuxu.org/mirror/musl/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).