From be2d940203216c98dac67fdf99c599b0eb91e3c5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 4 Dec 2023 12:45:53 +1100 Subject: [PATCH] Fix error in recent GHOST/Wayland thread priority function Invalid type for testing was left in making the priority change a noop. --- intern/ghost/intern/GHOST_SystemWayland.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/intern/ghost/intern/GHOST_SystemWayland.cc b/intern/ghost/intern/GHOST_SystemWayland.cc index 21561e08478..d2085ce6f23 100644 --- a/intern/ghost/intern/GHOST_SystemWayland.cc +++ b/intern/ghost/intern/GHOST_SystemWayland.cc @@ -603,7 +603,7 @@ struct GWL_KeyRepeatPlayload { xkb_keycode_t key_code; - /** Time time this timer started. */ + /** Time this timer started. */ uint64_t time_ms_init; /** @@ -2014,8 +2014,8 @@ static void pthread_set_min_priority(pthread_t handle) static void thread_set_min_priority(std::thread &thread) { - constexpr bool is_ptrhead = std::is_same(); - if (!is_ptrhead) { + constexpr bool is_pthread = std::is_same(); + if (!is_pthread) { return; } /* The cast is "safe" as non-matching types will have returned already.