mirror of
https://github.com/RGBCube/serenity
synced 2025-05-29 13:55:07 +00:00
Kernel: Port BlockBasedFileSystem to ProtectedValue :^)
This commit is contained in:
parent
e2bfdd74bc
commit
552dd7abd3
2 changed files with 80 additions and 80 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue