mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-16 06:47:14 +02:00
thread starting if rxr closed and others
This commit is contained in:
@ -562,17 +562,21 @@ int UDPStandardImplementation::setFrameToGuiFrequency(const uint32_t freq){
|
|||||||
uint32_t UDPStandardImplementation::setDataStreamEnable(const uint32_t enable){
|
uint32_t UDPStandardImplementation::setDataStreamEnable(const uint32_t enable){
|
||||||
FILE_LOG(logDEBUG) << __AT__ << " called";
|
FILE_LOG(logDEBUG) << __AT__ << " called";
|
||||||
|
|
||||||
|
int oldvalue = dataStreamEnable;
|
||||||
dataStreamEnable = enable;
|
dataStreamEnable = enable;
|
||||||
FILE_LOG(logINFO) << "Data Send to Gui: " << dataStreamEnable;
|
FILE_LOG(logINFO) << "Data Send to Gui: " << dataStreamEnable;
|
||||||
|
|
||||||
//data sockets have to be created again as the client ones are
|
|
||||||
if(zmqThreadStarted)
|
|
||||||
createDataCallbackThreads(true);
|
|
||||||
|
|
||||||
if(dataStreamEnable){
|
if(oldvalue!=dataStreamEnable){
|
||||||
numberofDataCallbackThreads = MAX_NUMBER_OF_LISTENING_THREADS;
|
//data sockets have to be created again as the client ones are
|
||||||
if(createDataCallbackThreads() == FAIL){
|
if(zmqThreadStarted)
|
||||||
cprintf(BG_RED,"Error: Could not create data callback threads\n");
|
createDataCallbackThreads(true);
|
||||||
|
|
||||||
|
if(dataStreamEnable){
|
||||||
|
numberofDataCallbackThreads = MAX_NUMBER_OF_LISTENING_THREADS;
|
||||||
|
if(createDataCallbackThreads() == FAIL){
|
||||||
|
cprintf(BG_RED,"Error: Could not create data callback threads\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user