You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2015/06/04 09:31:10 UTC
mesos git commit: Remove libprocess internal.hpp.
Repository: mesos
Updated Branches:
refs/heads/master 94c0f68dc -> bf1151a4c
Remove libprocess internal.hpp.
Review: https://reviews.apache.org/r/32365
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/bf1151a4
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/bf1151a4
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/bf1151a4
Branch: refs/heads/master
Commit: bf1151a4ca618280e7c21c547da2ab9e0a31391c
Parents: 94c0f68
Author: Joris Van Remoortere <jo...@gmail.com>
Authored: Thu Jun 4 00:30:56 2015 -0700
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Thu Jun 4 00:30:57 2015 -0700
----------------------------------------------------------------------
3rdparty/libprocess/include/Makefile.am | 1 -
.../libprocess/include/process/internal.hpp | 32 --------------------
2 files changed, 33 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/bf1151a4/3rdparty/libprocess/include/Makefile.am
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/Makefile.am b/3rdparty/libprocess/include/Makefile.am
index 8aab059..f45e7c5 100644
--- a/3rdparty/libprocess/include/Makefile.am
+++ b/3rdparty/libprocess/include/Makefile.am
@@ -19,7 +19,6 @@ nobase_include_HEADERS = \
process/help.hpp \
process/http.hpp \
process/id.hpp \
- process/internal.hpp \
process/io.hpp \
process/latch.hpp \
process/limiter.hpp \
http://git-wip-us.apache.org/repos/asf/mesos/blob/bf1151a4/3rdparty/libprocess/include/process/internal.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/internal.hpp b/3rdparty/libprocess/include/process/internal.hpp
deleted file mode 100644
index 78ee95d..0000000
--- a/3rdparty/libprocess/include/process/internal.hpp
+++ /dev/null
@@ -1,32 +0,0 @@
-#ifndef __PROCESS_INTERNAL_HPP__
-#define __PROCESS_INTERNAL_HPP__
-
-#include <stout/check.hpp>
-
-// TODO(benh): Replace usage of 'acquire' and 'release' with
-// std::mutex with C++11 and kill this header.
-
-namespace process {
-namespace internal {
-
-inline void acquire(int* lock)
-{
- while (!__sync_bool_compare_and_swap(lock, 0, 1)) {
-#if defined(__i386__) || defined(__x86_64__)
- asm volatile ("pause");
-#endif
- }
-}
-
-
-inline void release(int* lock)
-{
- // Unlock via a compare-and-swap so we get a memory barrier too.
- bool unlocked = __sync_bool_compare_and_swap(lock, 1, 0);
- CHECK(unlocked);
-}
-
-} // namespace internal {
-} // namespace process {
-
-#endif // __PROCESS_INTERNAL_HPP__