summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lioncash2021-02-04 14:57:36 -0500
committerGravatar Lioncash2021-02-04 14:57:41 -0500
commit31e6e5810115726158f86ca1dc75ef01eb08aeea (patch)
tree92aedcb850a8863403b692e2f13896145735eb74
parentk_priority_queue: Resolved reserved identifier (diff)
downloadyuzu-31e6e5810115726158f86ca1dc75ef01eb08aeea.tar.gz
yuzu-31e6e5810115726158f86ca1dc75ef01eb08aeea.tar.xz
yuzu-31e6e5810115726158f86ca1dc75ef01eb08aeea.zip
k_priority_queue: Simplify affinity mask type alias
We can make use of the _t variants of the templates to cut down on a little bit of verbosity.
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/k_priority_queue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_priority_queue.h b/src/core/hle/kernel/k_priority_queue.h
index afaab9812..103dafd48 100644
--- a/src/core/hle/kernel/k_priority_queue.h
+++ b/src/core/hle/kernel/k_priority_queue.h
@@ -58,8 +58,8 @@ concept KPriorityQueueMember = !std::is_reference_v<T> && requires(T & t) {
58template <typename Member, size_t NumCores_, int LowestPriority, int HighestPriority> 58template <typename Member, size_t NumCores_, int LowestPriority, int HighestPriority>
59requires KPriorityQueueMember<Member> class KPriorityQueue { 59requires KPriorityQueueMember<Member> class KPriorityQueue {
60public: 60public:
61 using AffinityMaskType = typename std::remove_cv_t< 61 using AffinityMaskType = std::remove_cv_t<
62 typename std::remove_reference<decltype(std::declval<Member>().GetAffinityMask())>::type>; 62 std::remove_reference_t<decltype(std::declval<Member>().GetAffinityMask())>>;
63 63
64 static_assert(LowestPriority >= 0); 64 static_assert(LowestPriority >= 0);
65 static_assert(HighestPriority >= 0); 65 static_assert(HighestPriority >= 0);