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