mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 07:35:18 +00:00
whitespace only change - adjust indentation and add some
comments on the content of these two files. utils.h (which is included in over 150 files) contains a lot of unrelated functions which require the inclusion of a large number of other headers. At some point we should partition its content in a better way. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89341 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -353,6 +353,10 @@ static force_inline int inaddrcmp(const struct sockaddr_in *sin1, const struct s
|
||||
|| (sin1->sin_port != sin2->sin_port));
|
||||
}
|
||||
|
||||
/*
|
||||
* Thread management support (should be moved to lock.h or a different header)
|
||||
*/
|
||||
|
||||
#define AST_STACKSIZE 240 * 1024
|
||||
|
||||
#if defined(LOW_MEMORY)
|
||||
@@ -372,24 +376,25 @@ int ast_pthread_create_detached_stack(pthread_t *thread, pthread_attr_t *attr, v
|
||||
void *data, size_t stacksize, const char *file, const char *caller,
|
||||
int line, const char *start_fn);
|
||||
|
||||
#define ast_pthread_create(a, b, c, d) ast_pthread_create_stack(a, b, c, d, \
|
||||
0, \
|
||||
__FILE__, __FUNCTION__, \
|
||||
__LINE__, #c)
|
||||
#define ast_pthread_create_detached(a, b, c, d) ast_pthread_create_detached_stack(a, b, c, d, \
|
||||
0, \
|
||||
__FILE__, __FUNCTION__, \
|
||||
__LINE__, #c)
|
||||
#define ast_pthread_create(a, b, c, d) \
|
||||
ast_pthread_create_stack(a, b, c, d, \
|
||||
0, __FILE__, __FUNCTION__, __LINE__, #c)
|
||||
|
||||
#define ast_pthread_create_background(a, b, c, d) ast_pthread_create_stack(a, b, c, d, \
|
||||
AST_BACKGROUND_STACKSIZE, \
|
||||
__FILE__, __FUNCTION__, \
|
||||
__LINE__, #c)
|
||||
#define ast_pthread_create_detached(a, b, c, d) \
|
||||
ast_pthread_create_detached_stack(a, b, c, d, \
|
||||
0, __FILE__, __FUNCTION__, __LINE__, #c)
|
||||
|
||||
#define ast_pthread_create_detached_background(a, b, c, d) ast_pthread_create_detached_stack(a, b, c, d, \
|
||||
AST_BACKGROUND_STACKSIZE, \
|
||||
__FILE__, __FUNCTION__, \
|
||||
__LINE__, #c)
|
||||
#define ast_pthread_create_background(a, b, c, d) \
|
||||
ast_pthread_create_stack(a, b, c, d, \
|
||||
AST_BACKGROUND_STACKSIZE, \
|
||||
__FILE__, __FUNCTION__, __LINE__, #c)
|
||||
|
||||
#define ast_pthread_create_detached_background(a, b, c, d) \
|
||||
ast_pthread_create_detached_stack(a, b, c, d, \
|
||||
AST_BACKGROUND_STACKSIZE, \
|
||||
__FILE__, __FUNCTION__, __LINE__, #c)
|
||||
|
||||
/* End of thread management support */
|
||||
|
||||
/*!
|
||||
\brief Process a string to find and replace characters
|
||||
|
Reference in New Issue
Block a user