projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
0ab3d64fdaed9b831c08bf90ed32e571ab2c400a
[musl]
/
src
/
thread
/
pthread_spin_lock.c
1
#include "pthread_impl.h"
2
3
int pthread_spin_lock(pthread_spinlock_t *s)
4
{
5
while (a_xchg(s, 1)) a_spin();
6
return 0;
7
}