From d8dc2faf1033e134e3a8f39bdf15c065f4d234be Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 24 Mar 2011 23:06:48 -0400 Subject: [PATCH] prepare pthread_spin_unlock for archs that need memory barriers --- src/thread/pthread_spin_unlock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.25.1