diff options
| author | 2015-04-03 18:40:16 -0400 | |
|---|---|---|
| committer | 2015-04-09 19:06:39 -0400 | |
| commit | 9c3419ebccf046e0a123e0516ea134547393e451 (patch) | |
| tree | 24073b71ade88e5f99db439b824228bdc6b2737d /src/core/hle/kernel/thread.h | |
| parent | Thread: Implement priority boost for starved threads. (diff) | |
| download | yuzu-9c3419ebccf046e0a123e0516ea134547393e451.tar.gz yuzu-9c3419ebccf046e0a123e0516ea134547393e451.tar.xz yuzu-9c3419ebccf046e0a123e0516ea134547393e451.zip | |
Kernel: Implemented priority inheritance for mutexes.
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index 92f2c423b..233bcbdbd 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -90,6 +90,12 @@ public: | |||
| 90 | void SetPriority(s32 priority); | 90 | void SetPriority(s32 priority); |
| 91 | 91 | ||
| 92 | /** | 92 | /** |
| 93 | * Temporarily boosts the thread's priority until the next time it is scheduled | ||
| 94 | * @param priority The new priority | ||
| 95 | */ | ||
| 96 | void BoostPriority(s32 priority); | ||
| 97 | |||
| 98 | /** | ||
| 93 | * Gets the thread's thread ID | 99 | * Gets the thread's thread ID |
| 94 | * @return The thread's ID | 100 | * @return The thread's ID |
| 95 | */ | 101 | */ |