Skip to content
Snippets Groups Projects
Commit 3450e675 authored by Giovanna Lazzari Miotto's avatar Giovanna Lazzari Miotto :mushroom:
Browse files

Maybe: OR => AND on conditions to close&rename

parent c29057ad
No related branches found
No related tags found
No related merge requests found
...@@ -149,7 +149,7 @@ std::string OutputFileHandler::format_filename(uint32_t run_number, uint32_t ind ...@@ -149,7 +149,7 @@ std::string OutputFileHandler::format_filename(uint32_t run_number, uint32_t ind
void OutputFileHandler::close_and_rename::operator()() const { void OutputFileHandler::close_and_rename::operator()() const {
OutputFile outputFile; OutputFile outputFile;
while (file_handler_running_ || (files_to_close_.size() > 0)) { while (file_handler_running_ && (files_to_close_.size() > 0)) {
LOG(TRACE) << "try pop now. queue size now " << files_to_close_.size(); LOG(TRACE) << "try pop now. queue size now " << files_to_close_.size();
try { try {
files_to_close_.pop(outputFile); files_to_close_.pop(outputFile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment