mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
Kernel: Rename ProtectedValue<T> => MutexProtected<T>
Let's make it obvious what we're protecting it with.
This commit is contained in:
parent
81d990b551
commit
c2fc33becd
Notes:
sideshowbarker
2024-07-18 05:25:05 +09:00
Author: https://github.com/awesomekling
Commit: c2fc33becd
18 changed files with 57 additions and 56 deletions
|
@ -44,18 +44,18 @@ static void create_signal_trampoline();
|
|||
|
||||
RecursiveSpinLock g_profiling_lock;
|
||||
static Atomic<pid_t> next_pid;
|
||||
static Singleton<ProtectedValue<Process::List>> s_processes;
|
||||
static Singleton<MutexProtected<Process::List>> s_processes;
|
||||
READONLY_AFTER_INIT HashMap<String, OwnPtr<Module>>* g_modules;
|
||||
READONLY_AFTER_INIT Memory::Region* g_signal_trampoline_region;
|
||||
|
||||
static Singleton<ProtectedValue<String>> s_hostname;
|
||||
static Singleton<MutexProtected<String>> s_hostname;
|
||||
|
||||
ProtectedValue<String>& hostname()
|
||||
MutexProtected<String>& hostname()
|
||||
{
|
||||
return *s_hostname;
|
||||
}
|
||||
|
||||
ProtectedValue<Process::List>& processes()
|
||||
MutexProtected<Process::List>& processes()
|
||||
{
|
||||
return *s_processes;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue