diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-22 11:13:07 -0400 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2020-02-22 11:18:07 -0400 |
commit | b9472eae440145042e504352472ba3a781b52f01 (patch) | |
tree | 8a68c647f3eaee6893df54ce0af6aa2e1a5a7a19 /src | |
parent | d219a96cc828d17932beebead209ba696b92a911 (diff) |
System: Expose Host thread registering routines from kernel.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/core.cpp | 8 | ||||
-rw-r--r-- | src/core/core.h | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 0eb0c0dca1..86e314c946 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -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 diff --git a/src/core/core.h b/src/core/core.h index e69d68fcf9..8d862a8e64 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -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(); |