less_logic_in_udp_thread #1

Merged
wall_e merged 35 commits from less_logic_in_udp_thread into main 2025-11-14 14:11:18 +01:00
Showing only changes of commit 70c04af034 - Show all commits

View File

@@ -347,7 +347,6 @@ asynStatus asynStreamGeneratorDriver::writeInt32(asynUser *pasynUser,
void asynStreamGeneratorDriver::receiveUDP() {
// TODO fix time overflows
// TODO check for lost packets
const char *functionName = "receiveUDP";
asynStatus status = asynSuccess;
@@ -630,12 +629,14 @@ void asynStreamGeneratorDriver::processEvents() {
countDiffsPtr = (countDiffsPtr + 1) % 10;
lock();
for (size_t i = 0; i < num_channels; ++i) {
setIntegerParam(P_Rates[i], rates[i]);
if (countDiffsPtr % 5 == 0) {
lock();
for (size_t i = 0; i < num_channels; ++i) {
setIntegerParam(P_Rates[i], rates[i]);
}
callParamCallbacks();
unlock();
}
callParamCallbacks();
unlock();
}
}
}