[Groonga-mysql-commit] mroonga/mroonga at aa96eba [master] add enable fast mutexes option for independent build. refs #1760

Back to archive index

Kentoku null+****@clear*****
Sun Jun 23 18:53:12 JST 2013


Kentoku	2013-06-23 18:53:12 +0900 (Sun, 23 Jun 2013)

  New Revision: aa96eba9fcfed46c2dde5a305600d0310e46a7a4
  https://github.com/mroonga/mroonga/commit/aa96eba9fcfed46c2dde5a305600d0310e46a7a4

  Message:
    add enable fast mutexes option for independent build. refs #1760

  Modified files:
    CMakeLists.txt
    configure.ac

  Modified: CMakeLists.txt (+6 -0)
===================================================================
--- CMakeLists.txt    2013-06-21 15:27:58 +0900 (189120b)
+++ CMakeLists.txt    2013-06-23 18:53:12 +0900 (352a3f6)
@@ -217,6 +217,12 @@ else()
       COMPILE_DEFINITIONS "FORCE_FAST_MUTEX_DISABLED=1")
   endif()
 
+  option(WITH_FAST_MUTEXES "Enable fast mutex" OFF)
+  if(WITH_FAST_MUTEXES)
+    set_property(TARGET ha_mroonga APPEND PROPERTY
+      COMPILE_DEFINITIONS "MY_PTHREAD_FASTMUTEX")
+  endif()
+
   if(CMAKE_COMPILER_IS_GNUCXX)
     set(MYSQL_CFLAGS "${MYSQL_CFLAGS} -Werror -fno-implicit-templates -fno-exceptions -fno-rtti -felide-constructors")
   endif()

  Modified: configure.ac (+3 -0)
===================================================================
--- configure.ac    2013-06-21 15:27:58 +0900 (c51924b)
+++ configure.ac    2013-06-23 18:53:12 +0900 (ceec814)
@@ -299,6 +299,9 @@ AC_ARG_ENABLE(fast_mutexes,
 if test "$enable_fast_mutexes" = "no"; then
    AC_DEFINE(FORCE_FAST_MUTEX_DISABLED, [1],
              [Define to 1 if force fast mutext disabled])
+elif test "$enable_fast_mutexes" = "yes"; then
+   AC_DEFINE(MY_PTHREAD_FASTMUTEX, [1],
+             [Define to 1 if fast mutext enabled])
 fi
 
 AC_ARG_ENABLE(dtrace,
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-mysql-commit mailing list
Back to archive index