aboutsummaryrefslogtreecommitdiff
path: root/src/threading.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-11-20 18:03:33 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2024-11-20 18:03:33 +0100
commit0f6f3c207c46fa28059403e5f16af774d20c7ea2 (patch)
tree8031145bb2534c33ca0f2c65b9de85696c8a8ee0 /src/threading.cpp
parent304e4dfabe4555dff4aa72e75b677405fd30d1b3 (diff)
downloadlanes-0f6f3c207c46fa28059403e5f16af774d20c7ea2.tar.gz
lanes-0f6f3c207c46fa28059403e5f16af774d20c7ea2.tar.bz2
lanes-0f6f3c207c46fa28059403e5f16af774d20c7ea2.zip
More [[nodiscard]] boyscouting
Diffstat (limited to 'src/threading.cpp')
-rw-r--r--src/threading.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/threading.cpp b/src/threading.cpp
index 9c0d0fb..bedbcf8 100644
--- a/src/threading.cpp
+++ b/src/threading.cpp
@@ -204,7 +204,8 @@ void THREAD_SETNAME(std::string_view const& name_)
204// general its implementation is pretty much trivial, as on Win32 target 204// general its implementation is pretty much trivial, as on Win32 target
205// just SCHED_OTHER can be supported. 205// just SCHED_OTHER can be supported.
206#undef pthread_attr_setschedpolicy 206#undef pthread_attr_setschedpolicy
207[[nodiscard]] static int pthread_attr_setschedpolicy(pthread_attr_t* attr, int policy) 207[[nodiscard]]
208static int pthread_attr_setschedpolicy(pthread_attr_t* attr, int policy)
208{ 209{
209 if (policy != SCHED_OTHER) { 210 if (policy != SCHED_OTHER) {
210 return ENOTSUP; 211 return ENOTSUP;