1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-29 11:45:11 +00:00

Kernel: Port BlockBasedFileSystem to ProtectedValue :^)

This commit is contained in:
Andreas Kling 2021-08-07 23:50:37 +02:00
parent e2bfdd74bc
commit 552dd7abd3
2 changed files with 80 additions and 80 deletions

View file

@ -7,6 +7,7 @@
#pragma once
#include <Kernel/FileSystem/FileBackedFileSystem.h>
#include <Kernel/Locking/ProtectedValue.h>
namespace Kernel {
@ -43,8 +44,7 @@ private:
DiskCache& cache() const;
void flush_specific_block_if_needed(BlockIndex index);
mutable Mutex m_cache_lock;
mutable OwnPtr<DiskCache> m_cache;
mutable ProtectedValue<OwnPtr<DiskCache>> m_cache;
};
}