projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
remove redundant check in memalign
[musl]
/
src
/
thread
/
pthread_key_create.c
diff --git
a/src/thread/pthread_key_create.c
b/src/thread/pthread_key_create.c
index
c9ca48a
..
e51cb02
100644
(file)
--- a/
src/thread/pthread_key_create.c
+++ b/
src/thread/pthread_key_create.c
@@
-14,7
+14,7
@@
int pthread_key_create(pthread_key_t *k, void (*dtor)(void *))
unsigned i = (uintptr_t)&k / 16 % PTHREAD_KEYS_MAX;
unsigned j = i;
-
pthread_self
();
+
__pthread_self_init
();
if (!dtor) dtor = nodtor;
do {
if (!a_cas_p(keys+j, 0, dtor)) {