summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-02-10 18:26:11 -0800
committerJosh Blum <josh@joshknows.com>2011-02-10 18:26:11 -0800
commitb844bcc92ca53c6d9c7898a54de546b900b9dbdb (patch)
tree0cdd0c9b54ba439e915824d2405f8a927edcf3e7 /host
parent4addf2a48646f5b0faa5f42b35a5735d40d8b4f0 (diff)
downloaduhd-b844bcc92ca53c6d9c7898a54de546b900b9dbdb.tar.gz
uhd-b844bcc92ca53c6d9c7898a54de546b900b9dbdb.tar.bz2
uhd-b844bcc92ca53c6d9c7898a54de546b900b9dbdb.zip
uhd: set BOOST_SP_USE_QUICK_ALLOCATOR for managed buffer overhead, hope this doesnt cause trouble later
Diffstat (limited to 'host')
-rw-r--r--host/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt
index 6b2ac4e64..baa5ab662 100644
--- a/host/CMakeLists.txt
+++ b/host/CMakeLists.txt
@@ -62,6 +62,10 @@ IF(NOT CMAKE_BUILD_TYPE)
MESSAGE(STATUS "Build type not specified: defaulting to release.")
ENDIF(NOT CMAKE_BUILD_TYPE)
+#Creating a shared pointer itself has allocation overhead.
+#Define the quick allocator to reduce fast-path overhead.
+ADD_DEFINITIONS(-DBOOST_SP_USE_QUICK_ALLOCATOR)
+
IF(CMAKE_COMPILER_IS_GNUCXX)
ADD_DEFINITIONS(-Wall)
ADD_DEFINITIONS(-Wextra)