diff options
Diffstat (limited to 'logic')
-rw-r--r-- | logic/tracker.cpp | 5 | ||||
-rw-r--r-- | logic/tracker.h | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp index a5d4b86f..533a6f54 100644 --- a/logic/tracker.cpp +++ b/logic/tracker.cpp @@ -44,7 +44,7 @@ Tracker::Tracker(Mappings& m, SelectedLibraries& libs, TrackLogger& logger) : Tracker::~Tracker() { - set(f_should_quit, true); + requestInterruption(); wait(); } @@ -384,7 +384,7 @@ void Tracker::run() t.start(); - while (!get(f_should_quit)) + while (!isInterruptionRequested()) { logic(); @@ -491,5 +491,4 @@ bits::bits() : b(0u) set(f_enabled_p, true); set(f_enabled_h, true); set(f_zero, false); - set(f_should_quit, false); } diff --git a/logic/tracker.h b/logic/tracker.h index 2c4c5610..b1ed4042 100644 --- a/logic/tracker.h +++ b/logic/tracker.h @@ -40,7 +40,6 @@ struct bits f_enabled_h = 1 << 1, f_enabled_p = 1 << 2, f_zero = 1 << 3, - f_should_quit = 1 << 4, }; std::atomic<unsigned> b; |