repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add legacy getloadavg api
[musl.git]
/
src
/
thread
/
pthread_spin_trylock.c
blob
59de695ddad9ebb4ad941574681829513fe321db
1
#include
"pthread_impl.h"
2
3
int
pthread_spin_trylock
(
pthread_spinlock_t
*
s
)
4
{
5
return
-
a_swap
(
s
,
1
) &
EBUSY
;
6
}