projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8b85a4
)
prepare pthread_spin_unlock for archs that need memory barriers
author
Rich Felker
<dalias@aerifal.cx>
Fri, 25 Mar 2011 03:06:48 +0000
(23:06 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 25 Mar 2011 03:06:48 +0000
(23:06 -0400)
src/thread/pthread_spin_unlock.c
patch
|
blob
|
history
diff --git
a/src/thread/pthread_spin_unlock.c
b/src/thread/pthread_spin_unlock.c
index a7eab33446d7cec812ecc82267e1d6f69c49e37a..724d9e0d65d1ad2b535351c1fbfff6a8d927051b 100644
(file)
--- 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;
}