mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
parent
527c8047fe
commit
f48feae0b2
Notes:
sideshowbarker
2024-07-19 03:23:13 +09:00
Author: https://github.com/tomuta
Commit: f48feae0b2
Pull-request: https://github.com/SerenityOS/serenity/pull/3229
Issue: https://github.com/SerenityOS/serenity/issues/3226
Reviewed-by: https://github.com/awesomekling
44 changed files with 184 additions and 146 deletions
|
@ -33,20 +33,19 @@
|
|||
#include <Kernel/FileSystem/VirtualFileSystem.h>
|
||||
#include <Kernel/KBufferBuilder.h>
|
||||
#include <Kernel/Net/LocalSocket.h>
|
||||
#include <Kernel/Singleton.h>
|
||||
#include <Kernel/VM/SharedInodeVMObject.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
static SpinLock s_all_inodes_lock;
|
||||
static auto s_list = make_singleton<InlineLinkedList<Inode>>();
|
||||
|
||||
InlineLinkedList<Inode>& Inode::all_with_lock()
|
||||
{
|
||||
ASSERT(s_all_inodes_lock.is_locked());
|
||||
|
||||
static InlineLinkedList<Inode>* list;
|
||||
if (!list)
|
||||
list = new InlineLinkedList<Inode>;
|
||||
return *list;
|
||||
return *s_list;
|
||||
}
|
||||
|
||||
void Inode::sync()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue