aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt5
-rw-r--r--config.h.cmake2
-rw-r--r--src/framework/Platform/Define.h4
3 files changed, 10 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fea90bb5345..928d8e35d68 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,6 +24,7 @@ OPTION(DO_WARN "Enable all compile warnings" 0)
OPTION(LARGE_CELL "Large cell size" 0)
OPTION(SHORT_SLEEP "Short sleep" 0)
OPTION(CENTOS "CENTOS" 0)
+OPTION(USE_MULTI_THREAD_MAP "With Multithread maps" 0)
SET(GENREV_SRC
src/tools/genrevision/genrevision.cpp
@@ -89,6 +90,10 @@ SET(SCRIPT_LIB trinityinterface)
SET(SCRIPT_INCLUDE src/bindings/interface)
endif(DO_SCRIPTS)
+IF (USE_MULTI_THREAD_MAP)
+ message("* With Multithread maps")
+ENDIF (USE_MULTI_THREAD_MAP)
+
message("-- Miscellaneus options:")
if(DO_CLI)
diff --git a/config.h.cmake b/config.h.cmake
index 2442e1779c0..e6ccb6e3c2a 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -3,4 +3,6 @@
#cmakedefine HAVE_ACE_STACK_TRACE_H
+#cmakedefine USE_MULTI_THREAD_MAP
+
#endif HAVE_CONFIG_H
diff --git a/src/framework/Platform/Define.h b/src/framework/Platform/Define.h
index ad2c8b9b179..9536098258a 100644
--- a/src/framework/Platform/Define.h
+++ b/src/framework/Platform/Define.h
@@ -152,7 +152,9 @@ typedef uint64 OBJECT_HANDLE;
#endif
#if !defined(DEBUG) && !defined(MANGOS_DEBUG) && !defined(TRINITY_DEBUG)
-//#define MULTI_THREAD_MAP
+ #if defined(USE_MULTI_THREAD_MAP)
+ #define MULTI_THREAD_MAP
+ #endif
#endif
#ifdef MULTI_THREAD_MAP