From a59df8c48db4a9acb47bfb7bf68486a7a5793f86 Mon Sep 17 00:00:00 2001 From: Carlos San Vicente Date: Sat, 10 Jul 2021 18:40:42 +0200 Subject: [PATCH] Fix function declaration discrepancy in rt_thread --- pendulum_utils/include/pendulum_utils/rt_thread.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pendulum_utils/include/pendulum_utils/rt_thread.hpp b/pendulum_utils/include/pendulum_utils/rt_thread.hpp index b1261ead..ddcdcc7f 100644 --- a/pendulum_utils/include/pendulum_utils/rt_thread.hpp +++ b/pendulum_utils/include/pendulum_utils/rt_thread.hpp @@ -34,9 +34,9 @@ namespace pendulum { namespace utils { -int set_thread_priority(size_t sched_priority, int policy); +int set_thread_priority(pid_t pid, size_t sched_priority, int policy); int set_this_thread_priority(size_t sched_priority, int policy); -int set_thread_cpu_affinity(uint32_t cpu_bit_mask); +int set_thread_cpu_affinity(pid_t pid, uint32_t cpu_bit_mask); int set_this_thread_cpu_affinity(uint32_t cpu_bit_mask); } // namespace utils } // namespace pendulum