projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
some extra legacy header stuff
[musl]
/
src
/
thread
/
pthread_spin_trylock.c
diff --git
a/src/thread/pthread_spin_trylock.c
b/src/thread/pthread_spin_trylock.c
index
c12696b
..
59de695
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;
}