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