1
0
Fork 0
forked from suyu/suyu

System: Expose Host thread registering routines from kernel.

This commit is contained in:
Fernando Sahmkow 2020-02-22 11:13:07 -04:00 committed by FernandoS27
parent d219a96cc8
commit b9472eae44
2 changed files with 14 additions and 0 deletions

View file

@ -707,4 +707,12 @@ const Service::SM::ServiceManager& System::ServiceManager() const {
return *impl->service_manager;
}
void System::RegisterCoreThread(std::size_t id) {
impl->kernel.RegisterCoreThread(id);
}
void System::RegisterHostThread() {
impl->kernel.RegisterHostThread();
}
} // namespace Core

View file

@ -360,6 +360,12 @@ public:
const CurrentBuildProcessID& GetCurrentProcessBuildID() const;
/// Register a host thread as an emulated CPU Core.
void RegisterCoreThread(std::size_t id);
/// Register a host thread as an auxiliary thread.
void RegisterHostThread();
private:
System();