musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat
-rw-r--r--src/thread/pthread_spin_unlock.c 3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/thread/pthread_spin_unlock.c b/src/thread/pthread_spin_unlock.c
index a7eab334..724d9e0d 100644
--- a/src/thread/pthread_spin_unlock.c
+++ b/src/thread/pthread_spin_unlock.c
@@ -2,5 +2,6 @@
int pthread_spin_unlock(pthread_spinlock_t *s)
{
- return *s = 0;
+ a_store(s, 0);
+ return 0;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月03日 12:20:36 +0000

AltStyle によって変換されたページ (->オリジナル) /