summaryrefslogtreecommitdiffstats
path: root/src/core/cpu_manager.h
diff options
context:
space:
mode:
authorLC <mathew1800@gmail.com>2020-07-16 20:16:57 +0200
committerGitHub <noreply@github.com>2020-07-16 20:16:57 +0200
commitd84d9a64b36013e2745f019f0b6f422f8ed1fd32 (patch)
tree4e43bcb0312811d74b78ed23014d96e4149b3f1c /src/core/cpu_manager.h
parentMerge pull request #4261 from ameerj/gc-calibration (diff)
parentkernel: Add missing include (diff)
downloadyuzu-d84d9a64b36013e2745f019f0b6f422f8ed1fd32.tar
yuzu-d84d9a64b36013e2745f019f0b6f422f8ed1fd32.tar.gz
yuzu-d84d9a64b36013e2745f019f0b6f422f8ed1fd32.tar.bz2
yuzu-d84d9a64b36013e2745f019f0b6f422f8ed1fd32.tar.lz
yuzu-d84d9a64b36013e2745f019f0b6f422f8ed1fd32.tar.xz
yuzu-d84d9a64b36013e2745f019f0b6f422f8ed1fd32.tar.zst
yuzu-d84d9a64b36013e2745f019f0b6f422f8ed1fd32.zip
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 35929ed94..17420c941 100644
--- a/src/core/cpu_manager.h
+++ b/src/core/cpu_manager.h
@@ -9,6 +9,9 @@
#include <functional>
#include <memory>
#include <thread>
+
+#include "common/fiber.h"
+#include "common/thread.h"
#include "core/hardware_properties.h"
namespace Common {
@@ -46,9 +49,9 @@ public:
void Pause(bool paused);
- std::function<void(void*)> GetGuestThreadStartFunc();
- std::function<void(void*)> GetIdleThreadStartFunc();
- std::function<void(void*)> GetSuspendThreadStartFunc();
+ static std::function<void(void*)> GetGuestThreadStartFunc();
+ static std::function<void(void*)> GetIdleThreadStartFunc();
+ static std::function<void(void*)> GetSuspendThreadStartFunc();
void* GetStartFuncParamater();
void PreemptSingleCore(bool from_running_enviroment = true);
@@ -97,7 +100,6 @@ private:
bool is_async_gpu{};
bool is_multicore{};
std::atomic<std::size_t> current_core{};
- std::size_t preemption_count{};
std::size_t idle_count{};
static constexpr std::size_t max_cycle_runs = 5;