mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-30 16:28:48 +00:00
Make VFS test environment build again.
This commit is contained in:
parent
83172e6a4b
commit
981a3ae4b3
Notes:
sideshowbarker
2024-07-19 18:32:34 +09:00
Author: https://github.com/awesomekling
Commit: 981a3ae4b3
12 changed files with 40 additions and 34 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue