commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 20/30: libshouldbeinlibc/maptime: use memory fences


From: Samuel Thibault
Subject: [hurd] 20/30: libshouldbeinlibc/maptime: use memory fences
Date: Tue, 22 Sep 2015 21:51:59 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 70962d761a364364f2809262a299829f35c1dd1e
Author: Justus Winter <address@hidden>
Date:   Tue Sep 8 12:37:08 2015 +0200

    libshouldbeinlibc/maptime: use memory fences
    
    * libshouldbeinlibc/maptime.h (maptime_read): Use memory fences.
---
 libshouldbeinlibc/maptime.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libshouldbeinlibc/maptime.h b/libshouldbeinlibc/maptime.h
index 947ad64..04ce035 100644
--- a/libshouldbeinlibc/maptime.h
+++ b/libshouldbeinlibc/maptime.h
@@ -51,7 +51,9 @@ maptime_read (volatile struct mapped_time_value *mtime, 
struct timeval *tv)
   do
     {
       tv->tv_sec = mtime->seconds;
+      __sync_synchronize ();
       tv->tv_usec = mtime->microseconds;
+      __sync_synchronize ();
     }
   while (tv->tv_sec != mtime->check_seconds);
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]