projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix regression in dynamic-linked tls when both main app & libs have tls
[musl]
/
src
/
thread
/
pthread_spin_lock.c
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
}