mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-06 13:37:34 +08:00
ENABLE_DBG -> MONGOOSE_ENABLE_DEBUG, USE_STACK_SIZE -> MONGOOSE_USE_STACK_SIZE
This commit is contained in:
parent
d86d409d3c
commit
2e35e25935
@ -168,7 +168,7 @@ struct ll { struct ll *prev, *next; };
|
||||
#define MONGOOSE_USE_IDLE_TIMEOUT_SECONDS 30
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_DBG
|
||||
#ifdef MONGOOSE_ENABLE_DEBUG
|
||||
#define DBG(x) do { printf("%-20s ", __func__); printf x; putchar('\n'); \
|
||||
fflush(stdout); } while(0)
|
||||
#else
|
||||
@ -399,7 +399,7 @@ void *mg_start_thread(void *(*f)(void *), void *p) {
|
||||
|
||||
#if MONGOOSE_USE_STACK_SIZE > 1
|
||||
// Compile-time option to control stack size, e.g. -DUSE_STACK_SIZE=16384
|
||||
(void) pthread_attr_setstacksize(&attr, USE_STACK_SIZE);
|
||||
(void) pthread_attr_setstacksize(&attr, MONGOOSE_USE_STACK_SIZE);
|
||||
#endif
|
||||
|
||||
pthread_create(&thread_id, &attr, f, p);
|
||||
|
Loading…
Reference in New Issue
Block a user