mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
thread pool update + refactor
This commit is contained in:
parent
1549a02731
commit
90d0b54a69
17 changed files with 271 additions and 103 deletions
|
|
@ -92,6 +92,12 @@ void WorldConverter::write() {
|
|||
wfile->write(nullptr, content);
|
||||
}
|
||||
|
||||
void WorldConverter::waitForEnd() {
|
||||
while (isActive()) {
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
uint WorldConverter::getWorkRemaining() const {
|
||||
return tasks.size();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue