mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 21:47:09 +02:00
quit all threads before waiting on them (CR)
This commit is contained in:
parent
2a597eb715
commit
d4061c172e
1 changed files with 4 additions and 1 deletions
|
@ -32,9 +32,12 @@ Oven::Oven() {
|
|||
}
|
||||
|
||||
Oven::~Oven() {
|
||||
// quit and wait on the worker threads
|
||||
// quit all worker threads and wait on them
|
||||
for (auto& thread : _workerThreads) {
|
||||
thread->quit();
|
||||
}
|
||||
|
||||
for (auto& thread: _workerThreads) {
|
||||
thread->wait();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue