mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-30 21:12:24 +02:00
Add destructor to WriteModule
This commit is contained in:
@@ -27,6 +27,8 @@ public:
|
||||
const header_map& header_values,
|
||||
const H5Format& format);
|
||||
|
||||
virtual ~H5WriteModule();
|
||||
|
||||
void start_writing(
|
||||
const std::string& output_file,
|
||||
const size_t n_frames = 0,
|
||||
|
||||
@@ -17,6 +17,11 @@ H5WriteModule::H5WriteModule(
|
||||
{
|
||||
}
|
||||
|
||||
H5WriteModule::~H5WriteModule()
|
||||
{
|
||||
stop_writing();
|
||||
}
|
||||
|
||||
void H5WriteModule::start_writing(
|
||||
const string& output_file,
|
||||
const size_t n_frames,
|
||||
@@ -243,6 +248,8 @@ void H5WriteModule::write_thread(
|
||||
|
||||
throw;
|
||||
}
|
||||
|
||||
is_writing_ = false;
|
||||
}
|
||||
|
||||
bool H5WriteModule::is_writing()
|
||||
|
||||
Reference in New Issue
Block a user