projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rework cancellation weak alias logic not to depend on archive order
[oweals/musl.git]
/
src
/
thread
/
pthread_spin_trylock.c
diff --git
a/src/thread/pthread_spin_trylock.c
b/src/thread/pthread_spin_trylock.c
index c12696b3010b332706d203faa7e16cad62433bca..59de695ddad9ebb4ad941574681829513fe321db 100644
(file)
--- a/
src/thread/pthread_spin_trylock.c
+++ b/
src/thread/pthread_spin_trylock.c
@@
-2,5
+2,5
@@
int pthread_spin_trylock(pthread_spinlock_t *s)
{
- return -a_
xchg
(s, 1) & EBUSY;
+ return -a_
swap
(s, 1) & EBUSY;
}