thread: Implement ChangeCore function.
This commit is contained in:
parent
1c36f2a798
commit
6ea8b3ef60
2 changed files with 58 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue