Increase allowed shared memory regions to 512 from ~120

This commit is contained in:
Daniel Patterson
2018-08-28 18:12:19 -07:00
committed by Daniel Patterson
parent 9b779c704f
commit 69d7825542
6 changed files with 30 additions and 25 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ struct RegionHandle
{
std::unique_ptr<SharedMemory> memory;
char *data_ptr;
std::uint8_t shm_key;
std::uint16_t shm_key;
};
auto setupRegion(SharedRegionRegister &shared_register, const DataLayout &layout)
+2 -1
View File
@@ -82,7 +82,8 @@ void springClean()
}
else
{
for (auto key : util::irange<std::uint8_t>(0, storage::SharedRegionRegister::MAX_SHM_KEYS))
for (auto key : util::irange<storage::SharedRegionRegister::RegionID>(
0, storage::SharedRegionRegister::MAX_SHM_KEYS))
{
deleteRegion(key);
}