Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'include/llfio/v2.0/algorithm/shared_fs_mutex/byte_ranges.hpp')
-rw-r--r--include/llfio/v2.0/algorithm/shared_fs_mutex/byte_ranges.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llfio/v2.0/algorithm/shared_fs_mutex/byte_ranges.hpp b/include/llfio/v2.0/algorithm/shared_fs_mutex/byte_ranges.hpp
index cb42ce05..7e952bac 100644
--- a/include/llfio/v2.0/algorithm/shared_fs_mutex/byte_ranges.hpp
+++ b/include/llfio/v2.0/algorithm/shared_fs_mutex/byte_ranges.hpp
@@ -143,9 +143,9 @@ namespace algorithm
// Now 0 to n needs to be closed
for(; n > 0; n--)
{
- _h.unlock(out.entities[n].value, 1);
+ _h.unlock_range(out.entities[n].value, 1);
}
- _h.unlock(out.entities[0].value, 1);
+ _h.unlock_range(out.entities[0].value, 1);
}
});
for(n = 0; n < out.entities.size(); n++)
@@ -179,7 +179,7 @@ namespace algorithm
}
}
}
- auto outcome = _h.lock(out.entities[n].value, 1, out.entities[n].exclusive != 0u, nd);
+ auto outcome = _h.lock_range(out.entities[n].value, 1, (out.entities[n].exclusive != 0u) ? file_handle::lock_kind::exclusive : file_handle::lock_kind::shared, nd);
if(!outcome)
{
was_contended = n;
@@ -229,7 +229,7 @@ namespace algorithm
LLFIO_LOG_FUNCTION_CALL(this);
for(const auto &i : entities)
{
- _h.unlock(i.value, 1);
+ _h.unlock_range(i.value, 1);
}
}
};