summaryrefslogtreecommitdiff
path: root/include/asterisk/utils.h
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2016-09-19 05:46:27 -0400
committerCorey Farrell <git@cfware.com>2016-09-29 03:22:28 -0400
commit8c5c95ad893af5d299da2695a0770cac98739e33 (patch)
tree8c8e24e0ac2c6bfcd2490f2c3d65a30ebd71bb20 /include/asterisk/utils.h
parent2d2a8944bed593e3cd2a66fe1b25288a62437423 (diff)
core: Remove ABI effects of LOW_MEMORY.
This allows asterisk to compiled with LOW_MEMORY to load modules built without LOW_MEMORY. ASTERISK-26398 #close Change-Id: I24b78ac9493ab933b11087a8b6794f3c96d4872d
Diffstat (limited to 'include/asterisk/utils.h')
-rw-r--r--include/asterisk/utils.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h
index 9789d34ee..f9608f517 100644
--- a/include/asterisk/utils.h
+++ b/include/asterisk/utils.h
@@ -423,13 +423,12 @@ 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 (((sizeof(void *) * 8 * 8) - 16) * 1024)
+#define AST_STACKSIZE (((sizeof(void *) * 8 * 8) - 16) * 1024)
+#define AST_STACKSIZE_LOW (((sizeof(void *) * 8 * 2) - 16) * 1024)
-#if defined(LOW_MEMORY)
-#define AST_BACKGROUND_STACKSIZE (((sizeof(void *) * 8 * 2) - 16) * 1024)
-#else
-#define AST_BACKGROUND_STACKSIZE AST_STACKSIZE
-#endif
+int ast_background_stacksize(void);
+
+#define AST_BACKGROUND_STACKSIZE ast_background_stacksize()
void ast_register_thread(char *name);
void ast_unregister_thread(void *id);