mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 09:27:00 +02:00
Make VFS test environment build again.
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 18:32:34 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/981a3ae4b3a
@@ -12,24 +12,19 @@
|
||||
|
||||
static VirtualFileSystem* s_the;
|
||||
|
||||
#ifndef SERENITY
|
||||
typedef int InterruptDisabler;
|
||||
#endif
|
||||
|
||||
VirtualFileSystem& VirtualFileSystem::the()
|
||||
{
|
||||
ASSERT(s_the);
|
||||
return *s_the;
|
||||
}
|
||||
|
||||
static SpinLock* s_vfsLock;
|
||||
|
||||
SpinLock& VirtualFileSystem::lock()
|
||||
{
|
||||
ASSERT(s_vfsLock);
|
||||
return *s_vfsLock;
|
||||
}
|
||||
|
||||
void VirtualFileSystem::initializeGlobals()
|
||||
{
|
||||
s_the = nullptr;
|
||||
s_vfsLock = new SpinLock;
|
||||
FileSystem::initializeGlobals();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user