Add is_writing retrieval flag

This commit is contained in:
2020-04-07 16:16:56 +02:00
parent 38a8b2363b
commit 9fc3e49bc0
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -34,6 +34,8 @@ public:
);
void stop_writing();
bool is_writing();
};
+5
View File
@@ -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);
}