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;
|
||||
#else
|
||||
#error Unknown Stack Grown
|
||||
#error "Only Supports Stack Grown Down"
|
||||
#endif
|
||||
|
||||
memset(trd, 0, sizeof(_st_thread_t));
|
||||
|
|
|
@ -138,7 +138,7 @@ static char *_st_new_stk_segment(int size)
|
|||
#ifdef MALLOC_STACK
|
||||
void *vaddr = malloc(size);
|
||||
#else
|
||||
#error Unknown Stack Malloc
|
||||
#error "Only Supports Malloc Stack"
|
||||
#endif
|
||||
|
||||
return (char *)vaddr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue