mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
research st, add comments
This commit is contained in:
parent
2b70212649
commit
8da8c49f39
2 changed files with 2 additions and 2 deletions
|
@ -564,7 +564,7 @@ _st_thread_t *st_thread_create(void *(*start)(void *arg), void *arg, int joinabl
|
||||||
}
|
}
|
||||||
stack->sp = sp - _ST_STACK_PAD_SIZE;
|
stack->sp = sp - _ST_STACK_PAD_SIZE;
|
||||||
#else
|
#else
|
||||||
#error Unknown Stack Grown
|
#error "Only Supports Stack Grown Down"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
memset(trd, 0, sizeof(_st_thread_t));
|
memset(trd, 0, sizeof(_st_thread_t));
|
||||||
|
|
|
@ -138,7 +138,7 @@ static char *_st_new_stk_segment(int size)
|
||||||
#ifdef MALLOC_STACK
|
#ifdef MALLOC_STACK
|
||||||
void *vaddr = malloc(size);
|
void *vaddr = malloc(size);
|
||||||
#else
|
#else
|
||||||
#error Unknown Stack Malloc
|
#error "Only Supports Malloc Stack"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return (char *)vaddr;
|
return (char *)vaddr;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue