mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
Merge pull request #2398 from lioncash/boost
kernel/thread: Remove BoostPriority()
This commit is contained in:
commit
a7c3275b8b
|
@ -220,11 +220,6 @@ void Thread::SetPriority(u32 priority) {
|
||||||
UpdatePriority();
|
UpdatePriority();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Thread::BoostPriority(u32 priority) {
|
|
||||||
scheduler->SetThreadPriority(this, priority);
|
|
||||||
current_priority = priority;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Thread::SetWaitSynchronizationResult(ResultCode result) {
|
void Thread::SetWaitSynchronizationResult(ResultCode result) {
|
||||||
context.cpu_registers[0] = result.raw;
|
context.cpu_registers[0] = result.raw;
|
||||||
}
|
}
|
||||||
|
|
|
@ -136,12 +136,6 @@ public:
|
||||||
*/
|
*/
|
||||||
void SetPriority(u32 priority);
|
void SetPriority(u32 priority);
|
||||||
|
|
||||||
/**
|
|
||||||
* Temporarily boosts the thread's priority until the next time it is scheduled
|
|
||||||
* @param priority The new priority
|
|
||||||
*/
|
|
||||||
void BoostPriority(u32 priority);
|
|
||||||
|
|
||||||
/// Adds a thread to the list of threads that are waiting for a lock held by this thread.
|
/// Adds a thread to the list of threads that are waiting for a lock held by this thread.
|
||||||
void AddMutexWaiter(SharedPtr<Thread> thread);
|
void AddMutexWaiter(SharedPtr<Thread> thread);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue