projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
0462e0f3a4004ca469cf6f99f7c24566f383a423
[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 (*(volatile int *)s || a_cas(s, 0, 1)) a_spin();
6
return 0;
7
}