mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-29 14:05:17 -04:00
libstrat: namespace hossynch.hpp
This commit is contained in:
parent
73d904036d
commit
bb223eb5ae
57 changed files with 923 additions and 773 deletions
|
@ -27,7 +27,7 @@ namespace sts::cfg {
|
|||
constexpr u64 InitialProcessIdMaxDeprecated = 0x50;
|
||||
|
||||
/* Privileged process globals. */
|
||||
HosMutex g_lock;
|
||||
os::Mutex g_lock;
|
||||
bool g_got_privileged_process_status = false;
|
||||
u64 g_min_initial_process_id = 0, g_max_initial_process_id = 0;
|
||||
u64 g_cur_process_id = 0;
|
||||
|
@ -69,7 +69,7 @@ namespace sts::cfg {
|
|||
|
||||
/* Privileged Process utilities. */
|
||||
bool IsInitialProcess() {
|
||||
std::scoped_lock<HosMutex> lk(g_lock);
|
||||
std::scoped_lock lk(g_lock);
|
||||
|
||||
/* If we've not detected, do detection. */
|
||||
if (!g_got_privileged_process_status) {
|
||||
|
@ -81,7 +81,7 @@ namespace sts::cfg {
|
|||
}
|
||||
|
||||
void GetInitialProcessRange(u64 *out_min, u64 *out_max) {
|
||||
std::scoped_lock<HosMutex> lk(g_lock);
|
||||
std::scoped_lock lk(g_lock);
|
||||
|
||||
/* If we've not detected, do detection. */
|
||||
if (!g_got_privileged_process_status) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue