diff options
Diffstat (limited to '')
| -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 0eb0c0dca..86e314c94 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -707,4 +707,12 @@ const Service::SM::ServiceManager& System::ServiceManager() const { | |||
| 707 | return *impl->service_manager; | 707 | return *impl->service_manager; |
| 708 | } | 708 | } |
| 709 | 709 | ||
| 710 | void System::RegisterCoreThread(std::size_t id) { | ||
| 711 | impl->kernel.RegisterCoreThread(id); | ||
| 712 | } | ||
| 713 | |||
| 714 | void System::RegisterHostThread() { | ||
| 715 | impl->kernel.RegisterHostThread(); | ||
| 716 | } | ||
| 717 | |||
| 710 | } // namespace Core | 718 | } // namespace Core |
diff --git a/src/core/core.h b/src/core/core.h index e69d68fcf..8d862a8e6 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
| @@ -360,6 +360,12 @@ public: | |||
| 360 | 360 | ||
| 361 | const CurrentBuildProcessID& GetCurrentProcessBuildID() const; | 361 | const CurrentBuildProcessID& GetCurrentProcessBuildID() const; |
| 362 | 362 | ||
| 363 | /// Register a host thread as an emulated CPU Core. | ||
| 364 | void RegisterCoreThread(std::size_t id); | ||
| 365 | |||
| 366 | /// Register a host thread as an auxiliary thread. | ||
| 367 | void RegisterHostThread(); | ||
| 368 | |||
| 363 | private: | 369 | private: |
| 364 | System(); | 370 | System(); |
| 365 | 371 | ||