mailing list of musl libc
 help / color / mirror / code / Atom feed
1051163250ea26c853752762f02d6d4723abe51b blob 310 bytes (raw)

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

int __pthread_setspecific(pthread_key_t k, const void *x)
{
	struct pthread *self = __pthread_self();
	/* Avoid unnecessary COW */
	if (self->tsd[k] != x) {
		self->tsd[k] = (void *)x;
		self->tsd_used = 1;
	}
	return 0;
}

weak_alias(__pthread_setspecific, pthread_setspecific);
debug log:

solving dd18b96 ...
found dd18b96 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/1409177505.4476.75.camel@eris.loria.fr/
found 55e46a8 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 55e46a899378f4f896e570ad8edbacbe569cbcf8	src/thread/pthread_setspecific.c

applying [1/3] https://inbox.vuxu.org/musl/1406886931.4830.92.camel@eris.loria.fr/
diff --git a/src/thread/pthread_setspecific.c b/src/thread/pthread_setspecific.c\r
index 55e46a8..dd18b96 100644\r

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

skipping https://inbox.vuxu.org/musl/1407144603.8274.248.camel@eris.loria.fr/ for dd18b96
skipping https://inbox.vuxu.org/musl/1409177505.4476.75.camel@eris.loria.fr/ for dd18b96
index at:
100644 1051163250ea26c853752762f02d6d4723abe51b	src/thread/pthread_setspecific.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).