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

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

int __munmap(void *, size_t);

/* C11 threads cannot be canceled, so there is no need for a
   cancelation function pointer, here. */
int thrd_join(thrd_t t, int *res)
{
	int tmp;
	while ((tmp = t->tid)) __timedwait(&t->tid, tmp, 0, 0, 0, 0, 0);
	if (res) *res = (int)(intptr_t)t->result;
	if (t->map_base) __munmap(t->map_base, t->map_size);
	return thrd_success;
}
debug log:

solving a8c7aed ...
found a8c7aed in https://inbox.vuxu.org/musl/22215ff2f880382340930f78cc746565a625a806.1409423162.git.Jens.Gustedt@inria.fr/ ||
	https://inbox.vuxu.org/musl/1409177505.4476.75.camel@eris.loria.fr/

applying [1/2] https://inbox.vuxu.org/musl/22215ff2f880382340930f78cc746565a625a806.1409423162.git.Jens.Gustedt@inria.fr/
diff --git a/src/thread/thrd_join.c b/src/thread/thrd_join.c
new file mode 100644
index 0000000..a8c7aed

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

skipping https://inbox.vuxu.org/musl/1409177505.4476.75.camel@eris.loria.fr/ for a8c7aed
index at:
100644 a8c7aed12cae7747049770db9624a09e688ba284	src/thread/thrd_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).