1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-22 20:06:40 +00:00

pm: save ~0x3000 in binary

This commit is contained in:
Michael Scire 2020-02-22 23:11:28 -08:00
parent 40400aee1f
commit c0f7cd95b9

View file

@ -196,6 +196,7 @@ namespace ams::pm::impl {
os::SystemEvent g_boot_finished_event;
/* Process Launch synchronization globals. */
os::Mutex g_launch_program_lock;
os::Event g_process_launch_start_event;
os::Event g_process_launch_finish_event;
Result g_process_launch_result = ResultSuccess();
@ -469,8 +470,7 @@ namespace ams::pm::impl {
/* Process Management. */
Result LaunchProgram(os::ProcessId *out_process_id, const ncm::ProgramLocation &loc, u32 flags) {
/* Ensure we only try to launch one program at a time. */
static os::Mutex s_lock;
std::scoped_lock lk(s_lock);
std::scoped_lock lk(g_launch_program_lock);
/* Set global arguments, signal, wait. */
g_process_launch_args = {