You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by mp...@apache.org on 2016/03/30 23:41:51 UTC
mesos git commit: Used Windows-compatible memory fence in libprocess
logging.
Repository: mesos
Updated Branches:
refs/heads/master c01542485 -> 7a54422ae
Used Windows-compatible memory fence in libprocess logging.
Review: https://reviews.apache.org/r/44135/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/7a54422a
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/7a54422a
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/7a54422a
Branch: refs/heads/master
Commit: 7a54422aefdec44df4b863217c0cb7a9c88f562d
Parents: c015424
Author: Daniel Pravat <dp...@outlook.com>
Authored: Wed Mar 30 17:24:18 2016 -0400
Committer: Michael Park <mp...@apache.org>
Committed: Wed Mar 30 17:24:18 2016 -0400
----------------------------------------------------------------------
3rdparty/libprocess/include/process/logging.hpp | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/7a54422a/3rdparty/libprocess/include/process/logging.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/logging.hpp b/3rdparty/libprocess/include/process/logging.hpp
index ee680ae..0c07746 100644
--- a/3rdparty/libprocess/include/process/logging.hpp
+++ b/3rdparty/libprocess/include/process/logging.hpp
@@ -52,7 +52,13 @@ private:
if (FLAGS_v != v) {
VLOG(FLAGS_v) << "Setting verbose logging level to " << v;
FLAGS_v = v;
- __sync_synchronize(); // Ensure 'FLAGS_v' visible in other threads.
+
+ // Ensure 'FLAGS_v' visible in other threads.
+#ifdef __WINDOWS__
+ MemoryBarrier();
+#else
+ __sync_synchronize();
+#endif // __WINDOWS__
}
}