projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
consistently use the LOCK an UNLOCK macros
[oweals/musl.git]
/
src
/
thread
/
pthread_detach.c
diff --git
a/src/thread/pthread_detach.c
b/src/thread/pthread_detach.c
index d9c90d1c89fa9ab56024eef5464db64e040e9c1c..692bbaf9cb643d111c69dc52ac8f5acda2eb89d5 100644
(file)
--- a/
src/thread/pthread_detach.c
+++ b/
src/thread/pthread_detach.c
@@
-9,7
+9,7
@@
static int __pthread_detach(pthread_t t)
if (a_cas(t->exitlock, 0, INT_MIN + 1))
return __pthread_join(t, 0);
t->detached = 2;
-
__unlock
(t->exitlock);
+
UNLOCK
(t->exitlock);
return 0;
}