Removed pthread specialization from Synchronized.

Review: https://reviews.apache.org/r/36672


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/3817760c
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/3817760c
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/3817760c

Branch: refs/heads/master
Commit: 3817760ca52a4433686ef5f171cef0a9806e8ab8
Parents: b062eb0
Author: Joris Van Remoortere <[email protected]>
Authored: Fri Jul 24 14:34:46 2015 -0700
Committer: Benjamin Hindman <[email protected]>
Committed: Fri Jul 24 15:29:04 2015 -0700

----------------------------------------------------------------------
 .../3rdparty/stout/include/stout/synchronized.hpp    | 15 ---------------
 1 file changed, 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/3817760c/3rdparty/libprocess/3rdparty/stout/include/stout/synchronized.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/synchronized.hpp 
b/3rdparty/libprocess/3rdparty/stout/include/stout/synchronized.hpp
index 855ba1d..45a83a3 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/synchronized.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/synchronized.hpp
@@ -76,21 +76,6 @@ inline Synchronized<std::atomic_flag> 
synchronize(std::atomic_flag* lock)
 }
 
 
-// An overload of the 'synchronize' function for 'pthread_mutex_t'.
-inline Synchronized<pthread_mutex_t> synchronize(pthread_mutex_t* mutex)
-{
-  return Synchronized<pthread_mutex_t>(
-    mutex,
-    [](pthread_mutex_t* mutex) {
-      pthread_mutex_lock(mutex);
-    },
-    [](pthread_mutex_t* mutex) {
-      pthread_mutex_unlock(mutex);
-    }
-  );
-}
-
-
 template <typename T>
 T* synchronized_get_pointer(T** t)
 {

Reply via email to