mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-10 06:01:52 +00:00
kern: mark initial threads as intended constinit
This commit is contained in:
parent
b99bcbc619
commit
d9c3908caf
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,8 @@ namespace ams::kern {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
KThread g_main_threads[cpu::NumCores];
|
/* TODO: C++20 constinit */ std::array<KThread, cpu::NumCores> g_main_threads;
|
||||||
KThread g_idle_threads[cpu::NumCores];
|
/* TODO: C++20 constinit */ std::array<KThread, cpu::NumCores> g_idle_threads;
|
||||||
}
|
}
|
||||||
|
|
||||||
KThread &Kernel::GetMainThread(s32 core_id) { return g_main_threads[core_id]; }
|
KThread &Kernel::GetMainThread(s32 core_id) { return g_main_threads[core_id]; }
|
||||||
|
|
Loading…
Reference in a new issue