mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
Kernel: Port BlockBasedFileSystem to ProtectedValue :^)
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 07:17:44 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/552dd7abd39
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user