mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-20 00:37:12 +02:00
zmq connect earlier in gui to prevent losing first messages
This commit is contained in:
@ -5778,17 +5778,9 @@ void multiSlsDetector::readFrameFromReceiver(){
|
|||||||
int* multiframe=new int[nel]();
|
int* multiframe=new int[nel]();
|
||||||
int nch;
|
int nch;
|
||||||
|
|
||||||
|
|
||||||
bool runningList[numSockets];
|
bool runningList[numSockets];
|
||||||
bool connectList[numSockets];
|
bool connectList[numSockets];
|
||||||
|
|
||||||
int numRunning = 0;
|
|
||||||
|
|
||||||
//wait for real time acquisition to start
|
|
||||||
bool running = true;
|
|
||||||
sem_wait(&sem_newRTAcquisition);
|
|
||||||
if(checkJoinThread())
|
|
||||||
running = false;
|
|
||||||
|
|
||||||
for(int i = 0; i < numSockets; ++i) {
|
for(int i = 0; i < numSockets; ++i) {
|
||||||
if(!zmqSocket[i]->Connect()) {
|
if(!zmqSocket[i]->Connect()) {
|
||||||
connectList[i] = true;
|
connectList[i] = true;
|
||||||
@ -5799,8 +5791,14 @@ void multiSlsDetector::readFrameFromReceiver(){
|
|||||||
runningList[i] = false;
|
runningList[i] = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
int numRunning = numSockets;
|
||||||
|
|
||||||
numRunning = numSockets;
|
|
||||||
|
//wait for real time acquisition to start
|
||||||
|
bool running = true;
|
||||||
|
sem_wait(&sem_newRTAcquisition);
|
||||||
|
if(checkJoinThread())
|
||||||
|
running = false;
|
||||||
|
|
||||||
|
|
||||||
//exit when last message for each socket received
|
//exit when last message for each socket received
|
||||||
|
Reference in New Issue
Block a user