diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-04-18 07:56:20 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-04-18 07:56:20 +0000 |
commit | cd43f797c473dbb5f6f4031e4abb784719e64c93 (patch) | |
tree | 3a32b3a0aefa3ee4f6525d42052b567d649e48aa /linuxthreads/spinlock.c | |
parent | dbacafe52e30710b5ec8707f60c531e6aeb857ed (diff) | |
download | glibc-cd43f797c473dbb5f6f4031e4abb784719e64c93.zip glibc-cd43f797c473dbb5f6f4031e4abb784719e64c93.tar.gz glibc-cd43f797c473dbb5f6f4031e4abb784719e64c93.tar.bz2 |
Update.
2000-04-18 Ulrich Drepper <drepper@redhat.com>
* posix/Makefile (tests): Add tst-getaddrinfo.
* posix/tst-getaddrinfo.c: New file.
and setresuid from sysdep_routines.
Diffstat (limited to 'linuxthreads/spinlock.c')
-rw-r--r-- | linuxthreads/spinlock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linuxthreads/spinlock.c b/linuxthreads/spinlock.c index d13cea1..c482d91 100644 --- a/linuxthreads/spinlock.c +++ b/linuxthreads/spinlock.c @@ -122,12 +122,12 @@ again: several iterations of the while loop. Some processors (e.g. multiprocessor Alphas) could perform such reordering even though the loads are dependent. */ - MEMORY_BARRIER(); + READ_MEMORY_BARRIER(); thr = *ptr; } /* Prevent reordering of the load of lock->__status above and thr->p_nextlock below */ - MEMORY_BARRIER(); + READ_MEMORY_BARRIER(); /* Remove max prio thread from waiting list. */ if (maxptr == (pthread_descr *) &lock->__status) { /* If max prio thread is at head, remove it with compare-and-swap |