aboutsummaryrefslogtreecommitdiff
path: root/src/threading.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-04-26 10:17:09 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-04-26 10:17:09 +0200
commit4343dc14c1db7ef9e5d57ed1d40740439e1c51d6 (patch)
treee3e7d192218291e4d089835fd63ac052142aa673 /src/threading.cpp
parent0b5108a8a0d9b7a4a63bd6aae0271b71a887beea (diff)
downloadlanes-4343dc14c1db7ef9e5d57ed1d40740439e1c51d6.tar.gz
lanes-4343dc14c1db7ef9e5d57ed1d40740439e1c51d6.tar.bz2
lanes-4343dc14c1db7ef9e5d57ed1d40740439e1c51d6.zip
Formalize a few coding style rules, start to enforce them for constants
Diffstat (limited to 'src/threading.cpp')
-rw-r--r--src/threading.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threading.cpp b/src/threading.cpp
index c7928c1..acc79d8 100644
--- a/src/threading.cpp
+++ b/src/threading.cpp
@@ -350,7 +350,7 @@ static int const gs_prio_remap[] =
350 350
351[[nodiscard]] static int select_prio(int prio /* -3..+3 */) 351[[nodiscard]] static int select_prio(int prio /* -3..+3 */)
352{ 352{
353 if (prio == THREAD_PRIO_DEFAULT) 353 if (prio == kThreadPrioDefault)
354 prio = 0; 354 prio = 0;
355 // prio range [-3,+3] was checked by the caller 355 // prio range [-3,+3] was checked by the caller
356 return gs_prio_remap[prio + 3]; 356 return gs_prio_remap[prio + 3];