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/08/01 21:03:13 UTC
[15/16] mesos git commit: Added configuration option for LIFO
fixed-size semaphore to Mesos.
Added configuration option for LIFO fixed-size semaphore to Mesos.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/0ed2f720
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/0ed2f720
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/0ed2f720
Branch: refs/heads/master
Commit: 0ed2f7206aacf9e60e4890bc1a9c2bad96e7803c
Parents: b036199
Author: Benjamin Hindman <be...@gmail.com>
Authored: Tue Aug 1 13:41:39 2017 -0700
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Tue Aug 1 14:01:52 2017 -0700
----------------------------------------------------------------------
configure.ac | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/0ed2f720/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index 18f025e..5a6e42c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -148,16 +148,22 @@ AC_CONFIG_FILES([mpi/mpiexec-mesos], [chmod +x mpi/mpiexec-mesos])
# Optional features.
###############################################################################
-# TODO(benh): Eventaully make this enabled by default.
+# TODO(benh): Eventually make this enabled by default.
+AC_ARG_ENABLE([last_in_first_out_fixed_size_semaphore],
+ AS_HELP_STRING([--enable-last-in-first-out-fixed-size-semaphore],
+ [enables the optimized LIFO fixed-size semaphore in libprocess]),
+ [], [enable_last_in_first_out_fixed_size_semaphore=no])
+
+# TODO(benh): Eventually make this enabled by default.
AC_ARG_ENABLE([lock_free_event_queue],
AS_HELP_STRING([--enable-lock-free-event-queue],
- [enables the lock free event queue in libprocess]),
+ [enables the lock-free event queue in libprocess]),
[], [enable_lock_free_event_queue=no])
-# TODO(benh): Eventaully make this enabled by default.
+# TODO(benh): Eventually make this enabled by default.
AC_ARG_ENABLE([lock_free_run_queue],
AS_HELP_STRING([--enable-lock-free-run-queue],
- [enables the lock free run queue in libprocess]),
+ [enables the lock-free run queue in libprocess]),
[], [enable_lock_free_run_queue=no])
AC_ARG_ENABLE([hardening],
@@ -457,11 +463,15 @@ AS_IF([test "x${ac_cv_env_CXXFLAGS_set}" = "x"],
# Compiler checks.
###############################################################################
-# Check if we should use the lock free event queue.
+# Check if we should use the LIFO fixed-size semaphore.
+AS_IF([test "x$enable_last_in_first_out_fixed_size_semaphore" = "xyes"],
+ [AC_DEFINE([LAST_IN_FIRST_OUT_FIXED_SIZE_SEMAPHORE])])
+
+# Check if we should use the lock-free event queue.
AS_IF([test "x$enable_lock_free_event_queue" = "xyes"],
[AC_DEFINE([LOCK_FREE_EVENT_QUEUE])])
-# Check if we should use the lock free run queue.
+# 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])])