/* This function get and set the inheritsched attribute in the attr argument. 
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_getinheritsched(const pthread_attr_t *attr, int *inheritsched)
/* This function get and set the inheritsched attribute in the attr argument. 
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_getinheritsched(const pthread_attr_t *attr, int *inheritsched)
{
    RT_ASSERT(attr != RT_NULL);
    *inheritsched = attr->inheritsched;
    return 0;
}