add Stopped function to test whether the analysis thread is stopped from outside the class

This commit is contained in:
Isaac Connor 2021-04-27 10:28:11 -04:00
parent df5b14dbd4
commit 9f49ac217e
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ class AnalysisThread {
void Start();
void Stop() { terminate_ = true; }
bool Stopped() const { return terminate_; }
private:
void Run();