1 /* 2 * Copyright (c) 2023 Meta 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef ZEPHYR_LIB_POSIX_POSIX_PTHREAD_SCHED_H_ 8 #define ZEPHYR_LIB_POSIX_POSIX_PTHREAD_SCHED_H_ 9 10 #include <stdbool.h> 11 12 #include <zephyr/posix/sched.h> 13 valid_posix_policy(int policy)14static inline bool valid_posix_policy(int policy) 15 { 16 return policy == SCHED_FIFO || policy == SCHED_RR || policy == SCHED_OTHER; 17 } 18 19 #endif 20