You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by nn...@apache.org on 2014/11/15 01:33:10 UTC
mesos git commit: Introduced mutex configure check in libprocess.
Repository: mesos
Updated Branches:
refs/heads/master da37eb247 -> 6380d3adc
Introduced mutex configure check in libprocess.
Review: https://reviews.apache.org/r/27350
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/6380d3ad
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/6380d3ad
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/6380d3ad
Branch: refs/heads/master
Commit: 6380d3adc8bf080d564c0ac775feddbaa507c231
Parents: da37eb2
Author: Joris Van Remoortere <jo...@gmail.com>
Authored: Fri Nov 14 16:18:12 2014 -0800
Committer: Niklas Q. Nielsen <ni...@mesosphere.io>
Committed: Fri Nov 14 16:18:12 2014 -0800
----------------------------------------------------------------------
3rdparty/libprocess/m4/ax_cxx_compile_stdcxx_11.m4 | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/6380d3ad/3rdparty/libprocess/m4/ax_cxx_compile_stdcxx_11.m4
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/m4/ax_cxx_compile_stdcxx_11.m4 b/3rdparty/libprocess/m4/ax_cxx_compile_stdcxx_11.m4
index bf2bd19..eebb4bd 100644
--- a/3rdparty/libprocess/m4/ax_cxx_compile_stdcxx_11.m4
+++ b/3rdparty/libprocess/m4/ax_cxx_compile_stdcxx_11.m4
@@ -37,6 +37,7 @@
m4_define([_AX_CXX_COMPILE_STDCXX_11_testbody], [
#include <memory>
+ #include <mutex>
template <typename T>
struct check
@@ -62,6 +63,22 @@ m4_define([_AX_CXX_COMPILE_STDCXX_11_testbody], [
std::unique_ptr<int> i(new int());
int j = foo(std::move(i));
+
+ void mutexTest()
+ {
+ std::mutex mutex;
+ {
+ // Scope of lockGuard.
+ std::lock_guard<std::mutex> lockGuard(mutex);
+ // End scope of lockGuard.
+ }
+
+ {
+ // Scope of uniqueLock.
+ std::unique_lock<std::mutex> uniqueLock(mutex);
+ // End scope of uniqueLock.
+ }
+ }
])
AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [