aboutsummaryrefslogtreecommitdiff
path: root/src/core/cpu_manager.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-03-10 13:13:39 -0400
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-27 11:35:45 -0400
commitd494b074e8afd3aff7b65afc7b977496be06ccc9 (patch)
tree002cc29d32a9b1e44e61fb1aae122715556b36c5 /src/core/cpu_manager.h
parenta439cdf22ea50f0e39cb51f6dff15fee3b495d16 (diff)
Kernel: Preempt Single core on redudant yields.
Diffstat (limited to 'src/core/cpu_manager.h')
-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 ff1935d5c7..c0e454a7dd 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;