diff options
author | LC <mathew1800@gmail.com> | 2020-07-16 20:16:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-16 20:16:57 +0200 |
commit | d84d9a64b36013e2745f019f0b6f422f8ed1fd32 (patch) | |
tree | 4e43bcb0312811d74b78ed23014d96e4149b3f1c /src/core/cpu_manager.h | |
parent | Merge pull request #4261 from ameerj/gc-calibration (diff) | |
parent | kernel: Add missing include (diff) | |
download | yuzu-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.h | 10 |
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; |