1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-29 06:35:06 +00:00

Kernel: Rename ProtectedValue<T> => MutexProtected<T>

Let's make it obvious what we're protecting it with.
This commit is contained in:
Andreas Kling 2021-08-21 23:31:15 +02:00
parent 81d990b551
commit c2fc33becd
18 changed files with 57 additions and 56 deletions

View file

@ -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;
}