summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-05-06 05:03:01 +0200
committerbunnei <bunneidev@gmail.com>2018-05-11 01:34:50 +0200
commit6ea8b3ef60bba657ca10c7e62dd849be9217faf3 (patch)
tree814e0f4209099833af831b69843ac47f9f502a6c /src/core/hle/kernel/thread.h
parentsvc: SignalProcessWideKey should apply to all cores. (diff)
downloadyuzu-6ea8b3ef60bba657ca10c7e62dd849be9217faf3.tar
yuzu-6ea8b3ef60bba657ca10c7e62dd849be9217faf3.tar.gz
yuzu-6ea8b3ef60bba657ca10c7e62dd849be9217faf3.tar.bz2
yuzu-6ea8b3ef60bba657ca10c7e62dd849be9217faf3.tar.lz
yuzu-6ea8b3ef60bba657ca10c7e62dd849be9217faf3.tar.xz
yuzu-6ea8b3ef60bba657ca10c7e62dd849be9217faf3.tar.zst
yuzu-6ea8b3ef60bba657ca10c7e62dd849be9217faf3.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/thread.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index 0a3bb1183..3dda548ad 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -120,6 +120,9 @@ public:
/// Recalculates the current priority taking into account priority inheritance.
void UpdatePriority();
+ /// Changes the core that the thread is running or scheduled to run on.
+ void ChangeCore(u32 core, u64 mask);
+
/**
* Gets the thread's thread ID
* @return The thread's ID
@@ -244,6 +247,9 @@ public:
std::shared_ptr<Scheduler> scheduler;
+ u32 ideal_core{0xFFFFFFFF};
+ u64 mask{0x1};
+
private:
Thread();
~Thread() override;