2018-09-07 16:00:13 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Atmosphère-NX
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms and conditions of the GNU General Public License,
|
|
|
|
* version 2, as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
* more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2018-05-03 11:10:05 +01:00
|
|
|
#include <switch.h>
|
2018-05-03 23:15:00 +01:00
|
|
|
#include <stratosphere.hpp>
|
2018-05-03 11:10:05 +01:00
|
|
|
#include "pm_process_track.hpp"
|
2018-05-04 06:58:25 +01:00
|
|
|
#include "pm_registration.hpp"
|
2018-05-03 11:10:05 +01:00
|
|
|
|
2018-05-03 23:15:00 +01:00
|
|
|
void ProcessTracking::MainLoop(void *arg) {
|
2018-05-04 06:58:25 +01:00
|
|
|
/* Make a new waitable manager. */
|
2018-10-30 00:29:35 +00:00
|
|
|
auto process_waiter = new WaitableManager(1);
|
|
|
|
process_waiter->AddWaitable(Registration::GetProcessLaunchStartEvent());
|
2018-05-06 09:23:47 +01:00
|
|
|
|
2018-05-04 06:58:25 +01:00
|
|
|
/* Service processes. */
|
2018-10-30 00:29:35 +00:00
|
|
|
process_waiter->Process();
|
2018-05-04 06:58:25 +01:00
|
|
|
|
|
|
|
delete process_waiter;
|
2018-05-03 11:10:05 +01:00
|
|
|
}
|