mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
prepare pthread_spin_unlock for archs that need memory barriers
This commit is contained in:
parent
b8b85a4272
commit
d8dc2faf10
1 changed files with 2 additions and 1 deletions
|
@ -2,5 +2,6 @@
|
|||
|
||||
int pthread_spin_unlock(pthread_spinlock_t *s)
|
||||
{
|
||||
return *s = 0;
|
||||
a_store(s, 0);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue