Ensure animation thread pools stop instead of taking on new work on destruction

This commit is contained in:
Dan Paulat 2025-09-06 23:08:56 -05:00
parent 9416ff1546
commit a952d890e6

View file

@ -55,6 +55,9 @@ public:
animationTimer_.cancel(); animationTimer_.cancel();
animationTimerLock.unlock(); animationTimerLock.unlock();
selectThreadPool_.stop();
playThreadPool_.stop();
selectThreadPool_.join(); selectThreadPool_.join();
playThreadPool_.join(); playThreadPool_.join();
} }