sharedmem: slsdetector being modified intensively

This commit is contained in:
2018-06-21 18:26:50 +02:00
parent 55517e6d4c
commit 5e9871720b
6 changed files with 2553 additions and 2731 deletions

View File

@ -64,7 +64,7 @@ void* SharedMemory::CreateSharedMemory(size_t sz){
return MapSharedMemory(sz);
}
void* SharedMemory::OpenSharedMemory(size_t sz, bool verify){
void* SharedMemory::OpenSharedMemory(size_t sz){
// open
fd = shm_open(name.c_str(), O_RDWR, 0);
if (fd < 0) {
@ -73,11 +73,6 @@ void* SharedMemory::OpenSharedMemory(size_t sz, bool verify){
throw SharedMemoryException();
}
// verification required and size does not match
if (verify)
VerifySizeMatch(sz);
// map
return MapSharedMemory(sz);
}