Browse Source
Merge pull request #2398 from lioncash/boost
kernel/thread: Remove BoostPriority()
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
0 additions and
11 deletions
-
src/core/hle/kernel/thread.cpp
-
src/core/hle/kernel/thread.h
|
|
|
@ -220,11 +220,6 @@ void Thread::SetPriority(u32 priority) { |
|
|
|
UpdatePriority(); |
|
|
|
} |
|
|
|
|
|
|
|
void Thread::BoostPriority(u32 priority) { |
|
|
|
scheduler->SetThreadPriority(this, priority); |
|
|
|
current_priority = priority; |
|
|
|
} |
|
|
|
|
|
|
|
void Thread::SetWaitSynchronizationResult(ResultCode result) { |
|
|
|
context.cpu_registers[0] = result.raw; |
|
|
|
} |
|
|
|
|
|
|
|
@ -136,12 +136,6 @@ public: |
|
|
|
*/ |
|
|
|
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. |
|
|
|
void AddMutexWaiter(SharedPtr<Thread> thread); |
|
|
|
|
|
|
|
|