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
powerpc-sf longjmp clobbering of val argument
[musl.git]
/
src
/
thread
/
pthread_spin_lock.c
blob
ded2b653c4751db88f288af6b84f92a7341263b3
1
#include
"pthread_impl.h"
2
#include <errno.h>
3
4
int
pthread_spin_lock
(
pthread_spinlock_t
*
s
)
5
{
6
while
(*(
volatile
int
*)
s
||
a_cas
(
s
,
0
,
EBUSY
))
a_spin
();
7
return
0
;
8
}