1
0
Fork 0
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:
winlin 2014-11-10 11:49:14 +08:00
parent 2b70212649
commit 8da8c49f39
2 changed files with 2 additions and 2 deletions

View file

@ -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));

View file

@ -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;