mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-21 15:18:53 +01:00
slsDetectorSoftware: order of zmq deletion in multi destructor to first because api using zmq to get data will need to be deleted first
This commit is contained in:
@@ -42,6 +42,11 @@ multiSlsDetector::multiSlsDetector(int id, bool verify, bool update)
|
|||||||
|
|
||||||
|
|
||||||
multiSlsDetector::~multiSlsDetector() {
|
multiSlsDetector::~multiSlsDetector() {
|
||||||
|
for (vector<ZmqSocket*>::const_iterator it = zmqSocket.begin(); it != zmqSocket.end(); ++it) {
|
||||||
|
delete(*it);
|
||||||
|
}
|
||||||
|
zmqSocket.clear();
|
||||||
|
|
||||||
for (vector<slsDetector*>::const_iterator it = detectors.begin(); it != detectors.end(); ++it) {
|
for (vector<slsDetector*>::const_iterator it = detectors.begin(); it != detectors.end(); ++it) {
|
||||||
delete(*it);
|
delete(*it);
|
||||||
}
|
}
|
||||||
@@ -52,11 +57,6 @@ multiSlsDetector::~multiSlsDetector() {
|
|||||||
delete sharedMemory;
|
delete sharedMemory;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (vector<ZmqSocket*>::const_iterator it = zmqSocket.begin(); it != zmqSocket.end(); ++it) {
|
|
||||||
delete(*it);
|
|
||||||
}
|
|
||||||
zmqSocket.clear();
|
|
||||||
|
|
||||||
destroyThreadPool();
|
destroyThreadPool();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user