Skip to content

Commit

Permalink
fix thread notification (was causing to wait 10ms which is detrimenta…
Browse files Browse the repository at this point in the history
…l with file rate beyond 10 Hz)
  • Loading branch information
smorovic committed May 15, 2024
1 parent d8e5329 commit a9f79eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions EventFilter/Utilities/src/DAQSource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,7 @@ void DAQSource::readWorker(unsigned int tid) {
init = false;
startupCv_.notify_one();
}
cvWakeup_.notify_all();
cvReader_[tid]->wait(lk);

if (thread_quit_signal[tid])
Expand Down
1 change: 1 addition & 0 deletions EventFilter/Utilities/src/FedRawDataInputSource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,7 @@ void FedRawDataInputSource::readWorker(unsigned int tid) {
init = false;
startupCv_.notify_one();
}
cvWakeup_.notify_all();
cvReader_[tid]->wait(lk);

if (thread_quit_signal[tid])
Expand Down

0 comments on commit a9f79eb

Please sign in to comment.