mirror of
https://github.com/asterisk/asterisk.git
synced 2025-12-03 19:52:13 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user