File locking deprecation replacements (#593)

This commit is contained in:
Ken Van Hoeylandt
2026-07-27 23:48:02 +02:00
committed by GitHub
parent d1f06cb774
commit 58a529cc44
16 changed files with 231 additions and 220 deletions
+3 -2
View File
@@ -75,9 +75,10 @@ private:
assert(elfFileData == nullptr);
size_t size = 0;
file::getLock(elf_path)->withLock([this, &elf_path, &size]{
{
file::FileMutexGuard guard(elf_path);
elfFileData = file::readBinary(elf_path, size);
});
}
if (elfFileData == nullptr) {
return false;