sharedmem: sls_detector_acquire multi and sls index scaning, error message when trying to acquire from a differet multi shm id, updateoffset and create threadpool after adding slsdetectors

This commit is contained in:
2018-06-27 17:20:05 +02:00
parent 95254619c6
commit 3114512c3f
3 changed files with 88 additions and 59 deletions

View File

@ -883,14 +883,15 @@ void multiSlsDetector::initializeMembers(bool verify) {
}
zmqSocket.clear();
updateOffsets();
createThreadPool();
// get objects from single det shared memory (open)
for (int i = 0; i < thisMultiDetector->numberOfDetectors; i++) {
slsDetector* sdet = new slsDetector(detId, i, verify, this);
detectors.push_back(sdet);
}
// depend on number of detectors
updateOffsets();
createThreadPool();
}