mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
ThreadPool stand-alone results
This commit is contained in:
parent
c1ab97eb15
commit
68320629de
4 changed files with 25 additions and 13 deletions
|
|
@ -37,10 +37,6 @@ WorldConverter::~WorldConverter() {
|
|||
delete wfile;
|
||||
}
|
||||
|
||||
bool WorldConverter::hasNext() const {
|
||||
return !tasks.empty();
|
||||
}
|
||||
|
||||
void WorldConverter::convertRegion(fs::path file) {
|
||||
int x, z;
|
||||
std::string name = file.stem().string();
|
||||
|
|
@ -72,7 +68,7 @@ void WorldConverter::convertPlayer(fs::path file) {
|
|||
}
|
||||
|
||||
void WorldConverter::convertNext() {
|
||||
if (!hasNext()) {
|
||||
if (tasks.empty()) {
|
||||
throw std::runtime_error("no more regions to convert");
|
||||
}
|
||||
convert_task task = tasks.front();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue