/* This function shall get the thread creation stack attributes stackaddr and stacksize in the attr object.  */
int pthread_attr_getstack(pthread_attr_t const *attr, void **stack_base, size_t *stack_size)
/* This function shall get the thread creation stack attributes stackaddr and stacksize in the attr object.  */
int pthread_attr_getstack(pthread_attr_t const *attr, void **stack_base, size_t *stack_size)
{
    RT_ASSERT(attr != RT_NULL);
    *stack_base = attr->stackaddr;
    *stack_size = attr->stacksize;
    return 0;
}