mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-06 18:10:40 +02: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:
parent
e38e500e16
commit
0dc1e10bd3
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user