mailing list of musl libc
 help / color / mirror / code / Atom feed
b63a44d9ea2ccd58167f330e92fb14b848563ea5 blob 346 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 
#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;
}

weak_alias(__pthread_join, pthread_join);
debug log:

solving 1b59489 ...
found 1b59489 in https://inbox.vuxu.org/musl/1406886931.4830.92.camel@eris.loria.fr/ ||
	https://inbox.vuxu.org/musl/1407144603.8274.248.camel@eris.loria.fr/
found 719c91c in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 719c91ca24f7b03f729657a27208e10e3bf1c020	src/thread/pthread_join.c

applying [1/2] https://inbox.vuxu.org/musl/1406886931.4830.92.camel@eris.loria.fr/
diff --git a/src/thread/pthread_join.c b/src/thread/pthread_join.c\r
index 719c91c..1b59489 100644\r

Checking patch src/thread/pthread_join.c...
Applied patch src/thread/pthread_join.c cleanly.

skipping https://inbox.vuxu.org/musl/1407144603.8274.248.camel@eris.loria.fr/ for 1b59489
index at:
100644 b63a44d9ea2ccd58167f330e92fb14b848563ea5	src/thread/pthread_join.c

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).