diff --git a/kal/posix/src/pthread_attr.c b/kal/posix/src/pthread_attr.c index d5e6d7b4a456758aae81181020fe2720763ebd1d..3caf5ea8df94ad87475f10edab8b434e3da58859 100644 --- a/kal/posix/src/pthread_attr.c +++ b/kal/posix/src/pthread_attr.c @@ -231,3 +231,23 @@ int pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stackSize) return 0; } + +int sched_get_priority_min(int policy) +{ + if (policy != SCHED_RR) { + errno = EINVAL; + return -1; + } + + return LOS_TASK_PRIORITY_LOWEST; +} + +int sched_get_priority_max(int policy) +{ + if (policy != SCHED_RR) { + errno = EINVAL; + return -1; + } + + return LOS_TASK_PRIORITY_HIGHEST; +}