Add joining of previously finished thread to start_writing

This commit is contained in:
babic_a committed 2020-04-08 16:50:58 +02:00
1 parent b75596e8a0
commit 93176daeee
1 file changed
+4
+4
View File
@@ -51,6 +51,10 @@ void H5WriteModule::start_writing(
cout << endl;
#endif
if (writing_thread_.joinable()) {
writing_thread_.join();
}
is_writing_ = true;
writing_thread_ = thread(