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 2017/07/19 20:21:22 UTC

[3/7] mesos git commit: Added --enable-lock-free-run-queue configuration to Mesos.

Added --enable-lock-free-run-queue configuration to Mesos.

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


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

Branch: refs/heads/master
Commit: 4936a32bcf4bbd0b74778d327d047cb8fe17e4f2
Parents: 6076dbc
Author: Benjamin Hindman <be...@gmail.com>
Authored: Tue Jul 18 22:26:46 2017 -0700
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Wed Jul 19 13:18:40 2017 -0700

----------------------------------------------------------------------
 configure.ac | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/4936a32b/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index 5f2ef52..b2eeeda 100644
--- a/configure.ac
+++ b/configure.ac
@@ -148,6 +148,11 @@ AC_CONFIG_FILES([mpi/mpiexec-mesos], [chmod +x mpi/mpiexec-mesos])
 # Optional features.
 ###############################################################################
 
+AC_ARG_ENABLE([lock_free_run_queue],
+              AS_HELP_STRING([--enable-lock-free-run-queue],
+                             [enables the lock free run queue in libprocess]),
+                             [], [enable_lock_free_run_queue=no])
+
 AC_ARG_ENABLE([hardening],
               AS_HELP_STRING([--disable-hardening],
                              [disables security measures such as stack
@@ -445,6 +450,10 @@ AS_IF([test "x${ac_cv_env_CXXFLAGS_set}" = "x"],
 # Compiler checks.
 ###############################################################################
 
+# Check if we should use the lock free run queue.
+AS_IF([test "x$enable_lock_free_run_queue" = "xyes"],
+      [AC_DEFINE([LOCK_FREE_RUN_QUEUE])])
+
 # Check to see if we should harden or not.
 AM_CONDITIONAL([ENABLE_HARDENING], [test x"$enable_hardening" = "xyes"])