thread pool update + refactor

This commit is contained in:
MihailRis
2024-04-11 15:48:27 +03:00
parent 1549a02731
commit 90d0b54a69
17 changed files with 271 additions and 103 deletions
+6
View File
@@ -92,6 +92,12 @@ void WorldConverter::write() {
wfile->write(nullptr, content);
}
void WorldConverter::waitForEnd() {
while (isActive()) {
update();
}
}
uint WorldConverter::getWorkRemaining() const {
return tasks.size();
}