mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-08-25 07:17:19 +02:00
System: Expose Host thread registering routines from kernel.
This commit is contained in:
parent
d219a96cc8
commit
b9472eae44
@ -707,4 +707,12 @@ const Service::SM::ServiceManager& System::ServiceManager() const {
|
|||||||
return *impl->service_manager;
|
return *impl->service_manager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void System::RegisterCoreThread(std::size_t id) {
|
||||||
|
impl->kernel.RegisterCoreThread(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
void System::RegisterHostThread() {
|
||||||
|
impl->kernel.RegisterHostThread();
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Core
|
} // namespace Core
|
||||||
|
@ -360,6 +360,12 @@ public:
|
|||||||
|
|
||||||
const CurrentBuildProcessID& GetCurrentProcessBuildID() const;
|
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:
|
private:
|
||||||
System();
|
System();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user