Internalize file closing

This commit is contained in:
2020-05-27 18:53:13 +02:00
parent 4f044d6b69
commit 7ca8630681
2 changed files with 3 additions and 3 deletions
-2
View File
@@ -143,8 +143,6 @@ int main (int argc, char *argv[])
cout << write_us_duration / BUFFER_BLOCK_SIZE << endl;
}
writer.close_file();
for (auto& reading_thread :reading_threads) {
if (reading_thread.joinable()) {
reading_thread.join();