diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-26 10:34:11 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-27 19:40:12 +0200 |
commit | 14526992418137af1b64d8be02a30fd91406195a (patch) | |
tree | 5286c85142b405d3e2facdab3830d233e1322df6 /cpukit/include/rtems/score | |
parent | rtems: Constify timer fire when directives (diff) | |
download | rtems-14526992418137af1b64d8be02a30fd91406195a.tar.bz2 |
Return status code for _Scheduler_Get_affinity()
This avoids having conditional statements to get the API-specific status
code.
Diffstat (limited to 'cpukit/include/rtems/score')
-rw-r--r-- | cpukit/include/rtems/score/schedulerimpl.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/include/rtems/score/schedulerimpl.h b/cpukit/include/rtems/score/schedulerimpl.h index c545615919..397789372c 100644 --- a/cpukit/include/rtems/score/schedulerimpl.h +++ b/cpukit/include/rtems/score/schedulerimpl.h @@ -693,10 +693,11 @@ RTEMS_INLINE_ROUTINE const Processor_mask *_Scheduler_Get_processors( * @param cpusetsize The size of @a cpuset. * @param[out] cpuset The cpuset that serves as destination for the copy operation * - * @retval true The copy operation was lossless. - * @retval false The copy operation was not lossless + * @retval STATUS_SUCCESSFUL The operation succeeded. + * + * @retval STATUS_INVALID_NUMBER The processor set was too small. */ -bool _Scheduler_Get_affinity( +Status_Control _Scheduler_Get_affinity( Thread_Control *the_thread, size_t cpusetsize, cpu_set_t *cpuset |