diff options
| author | 2021-11-28 12:21:45 +0100 | |
|---|---|---|
| committer | 2022-06-28 01:10:55 +0200 | |
| commit | 9cafb0d91266210dab2c72e484b493bceae1cb02 (patch) | |
| tree | b7a350271073804162c41254ff1889c8ec2a76bf /src/common/thread.cpp | |
| parent | Core: add missing include. (diff) | |
| download | yuzu-9cafb0d91266210dab2c72e484b493bceae1cb02.tar.gz yuzu-9cafb0d91266210dab2c72e484b493bceae1cb02.tar.xz yuzu-9cafb0d91266210dab2c72e484b493bceae1cb02.zip | |
Core: Fix tests.
Diffstat (limited to 'src/common/thread.cpp')
| -rw-r--r-- | src/common/thread.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/thread.cpp b/src/common/thread.cpp index 924f0df1b..919e33af9 100644 --- a/src/common/thread.cpp +++ b/src/common/thread.cpp | |||
| @@ -62,8 +62,7 @@ void SetCurrentThreadPriority(ThreadPriority new_priority) { | |||
| 62 | void SetCurrentThreadPriority(ThreadPriority new_priority) { | 62 | void SetCurrentThreadPriority(ThreadPriority new_priority) { |
| 63 | pthread_t this_thread = pthread_self(); | 63 | pthread_t this_thread = pthread_self(); |
| 64 | 64 | ||
| 65 | const auto scheduling_type = | 65 | const auto scheduling_type = SCHED_OTHER; |
| 66 | new_priority != ThreadPriority::Critical ? SCHED_OTHER : SCHED_FIFO; | ||
| 67 | s32 max_prio = sched_get_priority_max(scheduling_type); | 66 | s32 max_prio = sched_get_priority_max(scheduling_type); |
| 68 | s32 min_prio = sched_get_priority_min(scheduling_type); | 67 | s32 min_prio = sched_get_priority_min(scheduling_type); |
| 69 | u32 level = std::max(static_cast<u32>(new_priority) + 1, 4U); | 68 | u32 level = std::max(static_cast<u32>(new_priority) + 1, 4U); |