quit all threads before waiting on them (CR)

This commit is contained in:
Stephen Birarda 2018-02-20 17:27:40 -08:00
parent 2a597eb715
commit d4061c172e

View file

@ -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();
}