mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-12-01 14:07:48 +01:00
Add joining of previously finished thread to start_writing
This commit is contained in:
1 parent
b75596e8a0
commit
93176daeee
1 file changed
+4
@@ -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