mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
Revert "Kernel: Switch singletons to use new Singleton class"
This reverts commit f48feae0b2
.
This commit is contained in:
parent
0addcb45b8
commit
2fd9e72264
Notes:
sideshowbarker
2024-07-19 03:17:49 +09:00
Author: https://github.com/awesomekling
Commit: 2fd9e72264
44 changed files with 146 additions and 184 deletions
|
@ -28,15 +28,17 @@
|
|||
#include <Kernel/Arch/i386/CPU.h>
|
||||
#include <Kernel/Devices/RandomDevice.h>
|
||||
#include <Kernel/Random.h>
|
||||
#include <Kernel/Singleton.h>
|
||||
#include <Kernel/Time/TimeManagement.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
static auto s_the = make_singleton<KernelRng>();
|
||||
static KernelRng* s_the;
|
||||
|
||||
KernelRng& KernelRng::the()
|
||||
{
|
||||
if (!s_the) {
|
||||
s_the = new KernelRng;
|
||||
}
|
||||
return *s_the;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue