implement zooming

This commit is contained in:
2022-07-09 20:58:17 +02:00
parent 00b4c837d0
commit dd1a608eda
3 changed files with 70 additions and 40 deletions

View File

@ -44,9 +44,8 @@ void Mandelbrotc::start_threads(bool first)
for (int i = 0; i < this->thread_count; i++) {
std::thread t = std::thread(&Mandelbrotc::calc, this, i);
this->threads.push_back(std::move(t));
std::cout << "thread created" << std::endl;
//std::cout << "thread created" << std::endl;
}
this->done = false;
}
@ -71,7 +70,7 @@ void Mandelbrotc::calc(const uint8_t tid)
}
}
std::cout << "thread " << tid << " done" << std::endl;
//std::cout << "thread " << tid << " done" << std::endl;
if (tid == thread_count-1)
this->done = true;
}