/* This function sets schedpolicy attribute. 
SCHED_OTHER Default Linux time-sharing scheduling. */
int pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy)
/* This function sets schedpolicy attribute. 
SCHED_OTHER Default Linux time-sharing scheduling. */
int pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy)
{
    RT_ASSERT(attr != RT_NULL);
    attr->schedpolicy = policy;
    return 0;
}