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

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

int __pthread_join(pthread_t t, void **res);

int __pthread_detach(pthread_t t)
{
	/* Cannot detach a thread that's already exiting */
	if (a_swap(t->exitlock, 1))
		return __pthread_join(t, 0);
	t->detached = 2;
	__unlock(t->exitlock);
	return 0;
}

weak_alias(__pthread_detach, pthread_detach);
debug log:

solving 5ca7855 ...
found 5ca7855 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/ ||
	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 651c38e in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 651c38ebe86cc82ce51aca57731da21c48851e73	src/thread/pthread_detach.c

applying [1/5] https://inbox.vuxu.org/musl/1406886931.4830.92.camel@eris.loria.fr/
diff --git a/src/thread/pthread_detach.c b/src/thread/pthread_detach.c\r
index 651c38e..5ca7855 100644\r

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

skipping https://inbox.vuxu.org/musl/1407144603.8274.248.camel@eris.loria.fr/ for 5ca7855
skipping https://inbox.vuxu.org/musl/d408051f223ecc194b28f8df1f113a30427d17f6.1409524413.git.Jens.Gustedt@inria.fr/ for 5ca7855
skipping https://inbox.vuxu.org/musl/b91c6335ff9753691922f845f726c18f8e68802a.1409423162.git.Jens.Gustedt@inria.fr/ for 5ca7855
skipping https://inbox.vuxu.org/musl/1409177505.4476.75.camel@eris.loria.fr/ for 5ca7855
index at:
100644 df69b2937c5f9ec6d35052f205cc1799ceb480dd	src/thread/pthread_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).