mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-29 21:00:06 +00:00
Ensure animation thread pools stop instead of taking on new work on destruction
This commit is contained in:
parent
9416ff1546
commit
a952d890e6
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue