mailing list of musl libc
 help / color / mirror / code / Atom feed
8079326d53672cc8b9eb5760f0f272b888ca9204 blob 239 bytes (raw)

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

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 8079326 ...
found 8079326 in https://inbox.vuxu.org/musl/1e0e284e514b7a25ee75056617db64a051b3f3c2.1409524413.git.Jens.Gustedt@inria.fr/
found b0b153c in https://inbox.vuxu.org/musl/84b57c4f92b17384a2acdb2909d7ad8290abe31f.1409524413.git.Jens.Gustedt@inria.fr/

applying [1/2] https://inbox.vuxu.org/musl/84b57c4f92b17384a2acdb2909d7ad8290abe31f.1409524413.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..b0b153c


applying [2/2] https://inbox.vuxu.org/musl/1e0e284e514b7a25ee75056617db64a051b3f3c2.1409524413.git.Jens.Gustedt@inria.fr/
diff --git a/src/thread/thrd_detach.c b/src/thread/thrd_detach.c
index b0b153c..8079326 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 8079326d53672cc8b9eb5760f0f272b888ca9204	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).