Pass file properties to writing thread

This commit is contained in:
2020-04-06 13:36:54 +02:00
parent f4e7d9505e
commit 70062e3f14
2 changed files with 24 additions and 5 deletions
+9 -2
View File
@@ -16,7 +16,10 @@ class H5WriteModule {
std::thread writing_thread_;
protected:
void write_thread();
void write_thread(
const std::string& output_file,
const int n_frames,
const int user_id);
public:
H5WriteModule(
@@ -24,7 +27,11 @@ public:
const header_map& header_values,
const H5Format& format);
void start_writing();
void start_writing(
const std::string& output_file,
const int n_frames = 0,
const int user_id = -1
);
void stop_writing();
};