mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-10-28 08:01:29 +01:00
Add is_writing retrieval flag
This commit is contained in:
1 parent
38a8b2363b
commit
9fc3e49bc0
2 files changed
+7
No files matched your search
@@ -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