implement zooming
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user