mailing list of musl libc
 help / color / mirror / code / Atom feed
2597ae5742823587f95e5ff765861a61f6ff1988 blob 270 bytes (raw)

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

int __munmap(void *, size_t);

int thrd_detach(thrd_t t)
{
	/* Cannot detach a thread that's already exiting */
	if (a_swap(t->exitlock, 1))
		return thrd_join(t, 0);
	t->detached = 2;
	__unlock(t->exitlock);
	return 0;
}
debug log:

solving 2597ae5 ...
found 2597ae5 in https://inbox.vuxu.org/musl/656ddffc4cd1288b2d0d60d6817796a69799e7bc.1409423162.git.Jens.Gustedt@inria.fr/
found 72cdfba in https://inbox.vuxu.org/musl/22215ff2f880382340930f78cc746565a625a806.1409423162.git.Jens.Gustedt@inria.fr/

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


applying [2/2] https://inbox.vuxu.org/musl/656ddffc4cd1288b2d0d60d6817796a69799e7bc.1409423162.git.Jens.Gustedt@inria.fr/
diff --git a/src/thread/thrd_detach.c b/src/thread/thrd_detach.c
index 72cdfba..2597ae5 100644

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

index at:
100644 2597ae5742823587f95e5ff765861a61f6ff1988	src/thread/thrd_detach.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).