summaryrefslogtreecommitdiffstats
path: root/src/core/cpu_manager.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-03-10 18:13:39 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-27 17:35:45 +0200
commitd494b074e8afd3aff7b65afc7b977496be06ccc9 (patch)
tree002cc29d32a9b1e44e61fb1aae122715556b36c5 /src/core/cpu_manager.h
parentCPU_Manager: Unload/Reload threads on preemption on SingleCore (diff)
downloadyuzu-d494b074e8afd3aff7b65afc7b977496be06ccc9.tar
yuzu-d494b074e8afd3aff7b65afc7b977496be06ccc9.tar.gz
yuzu-d494b074e8afd3aff7b65afc7b977496be06ccc9.tar.bz2
yuzu-d494b074e8afd3aff7b65afc7b977496be06ccc9.tar.lz
yuzu-d494b074e8afd3aff7b65afc7b977496be06ccc9.tar.xz
yuzu-d494b074e8afd3aff7b65afc7b977496be06ccc9.tar.zst
yuzu-d494b074e8afd3aff7b65afc7b977496be06ccc9.zip
Diffstat (limited to '')
-rw-r--r--src/core/cpu_manager.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/cpu_manager.h b/src/core/cpu_manager.h
index ff1935d5c..c0e454a7d 100644
--- a/src/core/cpu_manager.h
+++ b/src/core/cpu_manager.h
@@ -45,6 +45,8 @@ public:
std::function<void(void*)> GetSuspendThreadStartFunc();
void* GetStartFuncParamater();
+ void PreemptSingleCore();
+
std::size_t CurrentCore() const {
return current_core.load();
}
@@ -71,8 +73,6 @@ private:
void RunThread(std::size_t core);
- void PreemptSingleCore();
-
struct CoreData {
std::shared_ptr<Common::Fiber> host_context;
std::unique_ptr<Common::Event> enter_barrier;