summaryrefslogtreecommitdiff
path: root/src/core/cpu_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/cpu_manager.h')
-rw-r--r--src/core/cpu_manager.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/cpu_manager.h b/src/core/cpu_manager.h
index 76dc58ee1..95ea3ef39 100644
--- a/src/core/cpu_manager.h
+++ b/src/core/cpu_manager.h
@@ -50,7 +50,10 @@ public:
50 void Initialize(); 50 void Initialize();
51 void Shutdown(); 51 void Shutdown();
52 52
53 std::function<void()> GetGuestThreadStartFunc() { 53 std::function<void()> GetGuestActivateFunc() {
54 return [this] { GuestActivate(); };
55 }
56 std::function<void()> GetGuestThreadFunc() {
54 return [this] { GuestThreadFunction(); }; 57 return [this] { GuestThreadFunction(); };
55 } 58 }
56 std::function<void()> GetIdleThreadStartFunc() { 59 std::function<void()> GetIdleThreadStartFunc() {
@@ -68,20 +71,19 @@ public:
68 71
69private: 72private:
70 void GuestThreadFunction(); 73 void GuestThreadFunction();
71 void GuestRewindFunction();
72 void IdleThreadFunction(); 74 void IdleThreadFunction();
73 void ShutdownThreadFunction(); 75 void ShutdownThreadFunction();
74 76
75 void MultiCoreRunGuestThread(); 77 void MultiCoreRunGuestThread();
76 void MultiCoreRunGuestLoop();
77 void MultiCoreRunIdleThread(); 78 void MultiCoreRunIdleThread();
78 79
79 void SingleCoreRunGuestThread(); 80 void SingleCoreRunGuestThread();
80 void SingleCoreRunGuestLoop();
81 void SingleCoreRunIdleThread(); 81 void SingleCoreRunIdleThread();
82 82
83 static void ThreadStart(std::stop_token stop_token, CpuManager& cpu_manager, std::size_t core); 83 static void ThreadStart(std::stop_token stop_token, CpuManager& cpu_manager, std::size_t core);
84 84
85 void GuestActivate();
86 void HandleInterrupt();
85 void ShutdownThread(); 87 void ShutdownThread();
86 void RunThread(std::size_t core); 88 void RunThread(std::size_t core);
87 89