mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
world converter threading
This commit is contained in:
parent
ab110dcdf5
commit
cc58ea29bc
10 changed files with 122 additions and 63 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue