diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-09 17:08:13 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-09 17:08:13 +0200 |
commit | aa9b3594e11498ca0977d87a9d0875d7fc107253 (patch) | |
tree | 8e4e3152088a56611822c6e881179e89e69bef13 /src/threading.cpp | |
parent | 95932749a53f46ae5901798a17e1f0c4c33ac6b2 (diff) | |
download | lanes-aa9b3594e11498ca0977d87a9d0875d7fc107253.tar.gz lanes-aa9b3594e11498ca0977d87a9d0875d7fc107253.tar.bz2 lanes-aa9b3594e11498ca0977d87a9d0875d7fc107253.zip |
C++ migration: [[nodiscard]] everywhere. still have to check all std::ignore
Diffstat (limited to '')
-rw-r--r-- | src/threading.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/threading.cpp b/src/threading.cpp index d278bb1..259693a 100644 --- a/src/threading.cpp +++ b/src/threading.cpp | |||
@@ -209,7 +209,7 @@ void THREAD_SETNAME(char const* _name) | |||
209 | // general its implementation is pretty much trivial, as on Win32 target | 209 | // general its implementation is pretty much trivial, as on Win32 target |
210 | // just SCHED_OTHER can be supported. | 210 | // just SCHED_OTHER can be supported. |
211 | #undef pthread_attr_setschedpolicy | 211 | #undef pthread_attr_setschedpolicy |
212 | static int pthread_attr_setschedpolicy(pthread_attr_t* attr, int policy) | 212 | [[nodiscard]] static int pthread_attr_setschedpolicy(pthread_attr_t* attr, int policy) |
213 | { | 213 | { |
214 | if (policy != SCHED_OTHER) | 214 | if (policy != SCHED_OTHER) |
215 | { | 215 | { |
@@ -348,7 +348,7 @@ static int const gs_prio_remap[] = | |||
348 | #endif // _PRIO_0 | 348 | #endif // _PRIO_0 |
349 | }; | 349 | }; |
350 | 350 | ||
351 | 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 == THREAD_PRIO_DEFAULT) |
354 | prio = 0; | 354 | prio = 0; |