summaryrefslogtreecommitdiffstats
path: root/src/core/cpu_manager.h
diff options
context:
space:
mode:
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);