mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-24 19:54:22 -04:00
stratosphere: prefer static waitable managers
This commit is contained in:
parent
d3d6c552b7
commit
1671c04e24
10 changed files with 39 additions and 64 deletions
|
@ -21,11 +21,9 @@
|
|||
|
||||
void ProcessTracking::MainLoop(void *arg) {
|
||||
/* Make a new waitable manager. */
|
||||
auto process_waiter = new WaitableManager(1);
|
||||
process_waiter->AddWaitable(Registration::GetProcessLaunchStartEvent());
|
||||
static auto s_process_waiter = WaitableManager(1);
|
||||
s_process_waiter.AddWaitable(Registration::GetProcessLaunchStartEvent());
|
||||
|
||||
/* Service processes. */
|
||||
process_waiter->Process();
|
||||
|
||||
delete process_waiter;
|
||||
s_process_waiter.Process();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue