From 729a399f3d33cdb729531f2a465a944f3f5e1bd8 Mon Sep 17 00:00:00 2001 From: Kajari Ghosh Date: Thu, 5 Apr 2018 08:11:05 -0400 Subject: [PATCH] pass in a hashed key to the threadlocal cache 500 mb threadlocal 2 t --- include/engine/data_watchdog.hpp | 6 ++- include/engine/datafacade_factory.hpp | 3 +- include/engine/unpacking_cache.hpp | 70 ++++++++++++++++++++------- 3 files changed, 59 insertions(+), 20 deletions(-) diff --git a/include/engine/data_watchdog.hpp b/include/engine/data_watchdog.hpp index 97359844af0..a655c4a19d5 100644 --- a/include/engine/data_watchdog.hpp +++ b/include/engine/data_watchdog.hpp @@ -60,7 +60,8 @@ class DataWatchdogImpl( std::make_shared( std::vector{ - static_region.shm_key, updatable_region.shm_key}), static_region.timestamp); + static_region.shm_key, updatable_region.shm_key}), + static_region.timestamp); } watcher = std::thread(&DataWatchdogImpl::Run, this); @@ -115,7 +116,8 @@ class DataWatchdogImpl( std::make_shared( std::vector{ - static_region.shm_key, updatable_region.shm_key}), static_region.timestamp); + static_region.shm_key, updatable_region.shm_key}), + static_region.timestamp); } util::Log() << "DataWatchdog thread stopped"; diff --git a/include/engine/datafacade_factory.hpp b/include/engine/datafacade_factory.hpp index 67352538d80..5b459f31c29 100644 --- a/include/engine/datafacade_factory.hpp +++ b/include/engine/datafacade_factory.hpp @@ -71,7 +71,8 @@ template