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
+1 -3
View File
@@ -70,9 +70,7 @@ void download(
auto bytes_left = client->getContentLength();
auto lockable = file::getLock(downloadFilePath);
auto lock = lockable->asScopedLock();
lock.lock();
file::FileMutexGuard guard(downloadFilePath);
LOG_I(TAG, "opening %s", downloadFilePath.c_str());
auto* file = fopen(downloadFilePath.c_str(), "wb");
if (file == nullptr) {