Skip to content

Commit 7ba9edb

Browse files
authored
Merge pull request #274 from sy-c/master
v2.22.0
2 parents 4438ab9 + 3403e79 commit 7ba9edb

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

doc/releaseNotes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,3 +609,6 @@ This file describes the main feature changes for each readout.exe released versi
609609

610610
## v2.21.9 - 06/12/2023
611611
- When equipment-*-rdhCheckFirstOrbit is set (default), the run is stopped if the first RDH received for an equipment does not passes validation, as in the case when first orbits mismatch.
612+
613+
## v2.22.0 - 30/01/2024
614+
- consumer-FairMQChannel: fix for DD TF ordering. In case of start/stop/start with parameter threads>1, there were some "non-continuous ordering" warnings due to a missing counter reset.

src/ConsumerFMQchannel.cxx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ class ConsumerFMQchannel : public Consumer
209209
std::unique_ptr<std::thread> senderThread; // this one empties the output FIFOs of the wThreads
210210
bool senderThreadIsRunning;
211211
int wThreadIxWrite = 0; // push data round-robin in wThreads
212-
int wThreadIxRead = 0; // read data round-robin in wThreads
213212
void cleanupThreads() {
214213
if (nwThreads) {
215214
wThreadShutdown = 1;
@@ -1372,6 +1371,8 @@ int ConsumerFMQchannel::start() {
13721371

13731372
currentTimeframeId = undefinedTimeframeId;
13741373

1374+
wThreadIxWrite = 0;
1375+
13751376
return Consumer::start();
13761377
}
13771378
int ConsumerFMQchannel::stop() {
@@ -1428,6 +1429,9 @@ int ConsumerFMQchannel::stop() {
14281429
theLog.log(LogInfoSupport_(3235), "Consumer %s - %llu incomplete TF dropped", name.c_str(), (unsigned long long)TFdropped);
14291430
}
14301431

1432+
// ensure wThread fifos in/out are empty
1433+
// this is done continuously in the (!isRunning) case of the worker threads and the sender thread
1434+
14311435
// wait threads completed
14321436
return Consumer::stop();
14331437
}

src/ReadoutVersion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
#define READOUT_VERSION "2.21.9"
12+
#define READOUT_VERSION "2.22.0"
1313

0 commit comments

Comments
 (0)