Allow for more viewers on sharedServer classes

This commit is contained in:
Erik Zandvliet 2014-12-17 16:03:27 +01:00
parent 7822e5c75d
commit e94e598841

View file

@ -649,6 +649,7 @@ namespace IPC {
newPage(); newPage();
newPage(); newPage();
newPage(); newPage();
newPage();
} }
///\brief The deconstructor ///\brief The deconstructor
@ -665,7 +666,7 @@ namespace IPC {
///\brief Creates the next page with the correct size ///\brief Creates the next page with the correct size
void sharedServer::newPage() { void sharedServer::newPage() {
semGuard tmpGuard(&mySemaphore); semGuard tmpGuard(&mySemaphore);
sharedPage tmp(std::string(baseName.substr(1) + (char)(myPages.size() + (int)'A')), (8192 << myPages.size()), true); sharedPage tmp(std::string(baseName.substr(1) + (char)(myPages.size() + (int)'A')), ((8192 * 2)<< myPages.size()), true);
myPages.insert(tmp); myPages.insert(tmp);
tmp.master = false; tmp.master = false;
DEBUG_MSG(DLVL_VERYHIGH, "Created a new page: %s", tmp.name.c_str()); DEBUG_MSG(DLVL_VERYHIGH, "Created a new page: %s", tmp.name.c_str());