mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-23 07:33:11 +02:00
Add is_writing retrieval flag
This commit is contained in:
@@ -34,6 +34,8 @@ public:
|
||||
);
|
||||
|
||||
void stop_writing();
|
||||
|
||||
bool is_writing();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -211,3 +211,8 @@ void H5WriteModule::write_thread(
|
||||
cout << " Writer thread stopped." << endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool H5WriteModule::is_writing()
|
||||
{
|
||||
return is_writing_.load(memory_order_relaxed);
|
||||
}
|
||||
Reference in New Issue
Block a user