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