commit | 7c42c01f109514fdc13232b29044d4eed00ca4fa | [log] [tgz] |
---|---|---|
author | Yong Cong Sin <ycsin@meta.com> | Wed Jan 17 18:29:43 2024 +0800 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Thu Jan 18 10:54:47 2024 +0100 |
tree | 8e898f66cce9a095b94a173bf38b41c4fd7a5cff | |
parent | c3cc2e4e6dac2ebbf01c0f57a89e5385f9c76fcc [diff] |
posix: pthread: use `is_posix_policy_prio_valid` to check POSIX priority Use the existing `is_posix_policy_prio_valid()` function to verify the POSIX's priority in the conversion functions. Changed the `priority` arg of `is_posix_policy_prio_valid` to `int` since that is the output of `sched_get_priority_min` & `sched_get_priority_max`. Signed-off-by: Yong Cong Sin <ycsin@meta.com>