aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/asterisk/utils.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h
index cb150ae4e..05f15ac38 100644
--- a/include/asterisk/utils.h
+++ b/include/asterisk/utils.h
@@ -348,13 +348,13 @@ int ast_careful_fwrite(FILE *f, int fd, const char *s, size_t len, int timeoutms
/*
* Thread management support (should be moved to lock.h or a different header)
*/
-
-#define AST_STACKSIZE 240 * 1024
+
+#define AST_STACKSIZE (((__WORDSIZE * 8) - 16) * 1024)
#if defined(LOW_MEMORY)
-#define AST_BACKGROUND_STACKSIZE 48 * 1024
+#define AST_BACKGROUND_STACKSIZE (((__WORDSIZE * 2) - 16) * 1024)
#else
-#define AST_BACKGROUND_STACKSIZE 240 * 1024
+#define AST_BACKGROUND_STACKSIZE AST_STACKSIZE
#endif
void ast_register_thread(char *name);