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

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

int __munmap(void *, size_t);

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 bca89aa ...
found bca89aa in https://inbox.vuxu.org/musl/d408051f223ecc194b28f8df1f113a30427d17f6.1409524413.git.Jens.Gustedt@inria.fr/ ||
	https://inbox.vuxu.org/musl/b91c6335ff9753691922f845f726c18f8e68802a.1409423162.git.Jens.Gustedt@inria.fr/ ||
	https://inbox.vuxu.org/musl/1409177505.4476.75.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/3] https://inbox.vuxu.org/musl/d408051f223ecc194b28f8df1f113a30427d17f6.1409524413.git.Jens.Gustedt@inria.fr/
diff --git a/src/thread/pthread_join.c b/src/thread/pthread_join.c
index 719c91c..bca89aa 100644

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

skipping https://inbox.vuxu.org/musl/b91c6335ff9753691922f845f726c18f8e68802a.1409423162.git.Jens.Gustedt@inria.fr/ for bca89aa
skipping https://inbox.vuxu.org/musl/1409177505.4476.75.camel@eris.loria.fr/ for bca89aa
index at:
100644 bca89aa302d9cc548a6eeba8b465c820e1720798	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).