summaryrefslogtreecommitdiffstats
path: root/src/core/cpu_manager.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-07-06 05:27:25 +0200
committerLiam <byteslice@airmail.cc>2022-07-15 04:47:18 +0200
commit21945ae127480c8332c1110ceada2df4a42a5848 (patch)
treea385c64a14b0d8e8dd71410eaa47575462f8f368 /src/core/cpu_manager.h
parentkernel: use KScheduler from mesosphere (diff)
downloadyuzu-21945ae127480c8332c1110ceada2df4a42a5848.tar
yuzu-21945ae127480c8332c1110ceada2df4a42a5848.tar.gz
yuzu-21945ae127480c8332c1110ceada2df4a42a5848.tar.bz2
yuzu-21945ae127480c8332c1110ceada2df4a42a5848.tar.lz
yuzu-21945ae127480c8332c1110ceada2df4a42a5848.tar.xz
yuzu-21945ae127480c8332c1110ceada2df4a42a5848.tar.zst
yuzu-21945ae127480c8332c1110ceada2df4a42a5848.zip
Diffstat (limited to '')
-rw-r--r--src/core/cpu_manager.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/core/cpu_manager.h b/src/core/cpu_manager.h
index 8143424af..835505b92 100644
--- a/src/core/cpu_manager.h
+++ b/src/core/cpu_manager.h
@@ -48,12 +48,11 @@ public:
gpu_barrier->Sync();
}
- void WaitForAndHandleInterrupt();
void Initialize();
void Shutdown();
std::function<void()> GetGuestActivateFunc() {
- return [this] { GuestActivateFunction(); };
+ return [this] { GuestActivate(); };
}
std::function<void()> GetGuestThreadFunc() {
return [this] { GuestThreadFunction(); };
@@ -72,21 +71,19 @@ public:
}
private:
- void GuestActivateFunction();
void GuestThreadFunction();
void IdleThreadFunction();
void ShutdownThreadFunction();
- void MultiCoreGuestActivate();
void MultiCoreRunGuestThread();
- void MultiCoreRunGuestLoop();
+ void MultiCoreRunIdleThread();
- void SingleCoreGuestActivate();
void SingleCoreRunGuestThread();
- void SingleCoreRunGuestLoop();
+ void SingleCoreRunIdleThread();
static void ThreadStart(std::stop_token stop_token, CpuManager& cpu_manager, std::size_t core);
+ void GuestActivate();
void HandleInterrupt();
void ShutdownThread();
void RunThread(std::size_t core);