mirror of
https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
synced 2025-12-17 11:12:41 +00:00
Kernel: Preempt Single core on redudant yields.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user