aboutsummaryrefslogtreecommitdiff
path: root/src/common/thread.h
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2026-02-01 01:54:59 +0100
committercrueter <crueter@eden-emu.dev>2026-02-01 01:54:59 +0100
commit1925726b96746bc436232b055ada641ea5f4d965 (patch)
tree6e6598f580bf83e19e574a9dfe54974df567b127 /src/common/thread.h
parentacf7deea957565937af43de66c7b86104553bc89 (diff)
[android, core] pin core threads to logical CPUs 0-3 (#3121)
this basically allows the threads to exist in these logical CPUs, undisturbed, and without trashing each other's cache this could improve performance, very tricky thing to pull off correctly, but again, this is mostly an experiment will mainly benefit: Linux, Android, FreeBSD, Windows (not ARM) Additionally, this means no context trashing :) Signed-off-by: lizzie <lizzie@eden-emu.dev> Co-authored-by: Caio Oliveira <caiooliveirafarias0@gmail.com> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3121 Reviewed-by: DraVee <dravee@eden-emu.dev> Reviewed-by: MaranBr <maranbr@eden-emu.dev> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src/common/thread.h')
-rw-r--r--src/common/thread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/thread.h b/src/common/thread.h
index 5ab495baaa..ea6f5d6b3b 100644
--- a/src/common/thread.h
+++ b/src/common/thread.h
@@ -1,4 +1,4 @@
-// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2013 Dolphin Emulator Project
@@ -106,7 +106,7 @@ enum class ThreadPriority : u32 {
};
void SetCurrentThreadPriority(ThreadPriority new_priority);
-
void SetCurrentThreadName(const char* name);
+void PinCurrentThreadToPerformanceCore(size_t core_id);
} // namespace Common