From b106a1eededf629030b9418fa65dcb83a429d914 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Sun, 15 Jan 2017 16:21:46 +0100 Subject: [PATCH] sharedServer class speed problem fixed --- lib/shared_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shared_memory.cpp b/lib/shared_memory.cpp index fecc7973..a61ddb2b 100644 --- a/lib/shared_memory.cpp +++ b/lib/shared_memory.cpp @@ -807,7 +807,7 @@ namespace IPC { ///\brief Creates the next page with the correct size void sharedServer::newPage() { - sharedPage tmp(std::string(baseName.substr(1) + (char)(myPages.size() + (int)'A')), std::min(((8192 * 2) << myPages.size()), (32 * 1024 * 1024)), false); + sharedPage tmp(std::string(baseName.substr(1) + (char)(myPages.size() + (int)'A')), std::min(((8192 * 2) << myPages.size()), (32 * 1024 * 1024)), false, false); if (!tmp.mapped){ tmp.init(std::string(baseName.substr(1) + (char)(myPages.size() + (int)'A')), std::min(((8192 * 2) << myPages.size()), (32 * 1024 * 1024)), true); tmp.master = false;