mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 01:00:44 +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() {
|
Oven::~Oven() {
|
||||||
// quit and wait on the worker threads
|
// quit all worker threads and wait on them
|
||||||
for (auto& thread : _workerThreads) {
|
for (auto& thread : _workerThreads) {
|
||||||
thread->quit();
|
thread->quit();
|
||||||
|
}
|
||||||
|
|
||||||
|
for (auto& thread: _workerThreads) {
|
||||||
thread->wait();
|
thread->wait();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue