/* This function get the scheduling parameter attributes in the attr argument.  */
int pthread_attr_getschedparam(pthread_attr_t const *attr, struct sched_param *param)
/* This function get the scheduling parameter attributes in the attr argument.  */
int pthread_attr_getschedparam(pthread_attr_t const *attr, struct sched_param *param)
{
    RT_ASSERT(attr != RT_NULL);
    RT_ASSERT(param != RT_NULL);
    param->sched_priority = attr->schedparam.sched_priority;
    return 0;
}