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