/* This function sets inherit-scheduler attribute in thread attributes object. 
PTHREAD_EXPLICIT_SCHED Specifies that the scheduling policy and associated attributes are to be set to the corresponding values from this attribute object. */
int pthread_attr_setinheritsched(pthread_attr_t *attr, int inheritsched)
/* This function sets inherit-scheduler attribute in thread attributes object. 
PTHREAD_EXPLICIT_SCHED Specifies that the scheduling policy and associated attributes are to be set to the corresponding values from this attribute object. */
int pthread_attr_setinheritsched(pthread_attr_t *attr, int inheritsched)
{
    RT_ASSERT(attr != RT_NULL);
    attr->inheritsched = inheritsched;
    return 0;
}