/* This function set the thread creation stacksize attribute in the attr object.  */
int pthread_attr_setstacksize(pthread_attr_t *attr, size_t stack_size)
/* This function set the thread creation stacksize attribute in the attr object.  */
int pthread_attr_setstacksize(pthread_attr_t *attr, size_t stack_size)
{
    RT_ASSERT(attr != RT_NULL);
    attr->stacksize = stack_size;
    return 0;
}