world converter threading

This commit is contained in:
MihailRis
2024-04-15 19:44:21 +03:00
parent ab110dcdf5
commit cc58ea29bc
10 changed files with 122 additions and 63 deletions
+1 -1
View File
@@ -207,7 +207,7 @@ ubyte* WorldRegions::getData(
std::shared_ptr<regfile> WorldRegions::useRegFile(glm::ivec3 coord) {
auto* file = openRegFiles[coord].get();
file->inUse = true;
return std::shared_ptr<regfile>(openRegFiles[coord].get(), [this](regfile* ptr) {
return std::shared_ptr<regfile>(file, [this](regfile* ptr) {
ptr->inUse = false;
regFilesCv.notify_one();
});