mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-30 02:02:23 +02:00
Add joining of previously finished thread to start_writing
This commit is contained in:
@@ -51,6 +51,10 @@ void H5WriteModule::start_writing(
|
||||
cout << endl;
|
||||
#endif
|
||||
|
||||
if (writing_thread_.joinable()) {
|
||||
writing_thread_.join();
|
||||
}
|
||||
|
||||
is_writing_ = true;
|
||||
|
||||
writing_thread_ = thread(
|
||||
|
||||
Reference in New Issue
Block a user