This mod will allow check_expr to compile in the presence of DEBUG_THREAD situations. At least, it does for me. And it's less expensive than several other approaches I tried.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84329 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
9d3e81a7d8
commit
2c8dd534a7
|
@ -88,6 +88,22 @@ int __ast_str_helper(struct ast_str **buf, size_t max_len,
|
|||
return res;
|
||||
}
|
||||
|
||||
void ast_store_lock_info(enum ast_lock_type type, const char *filename,
|
||||
int line_num, const char *func, const char *lock_name, void *lock_addr)
|
||||
{
|
||||
/* not a lot to do in a standalone w/o threading! */
|
||||
}
|
||||
|
||||
void ast_mark_lock_acquired(void)
|
||||
{
|
||||
/* not a lot to do in a standalone w/o threading! */
|
||||
}
|
||||
|
||||
void ast_remove_lock_info(void *lock_addr)
|
||||
{
|
||||
/* not a lot to do in a standalone w/o threading! */
|
||||
}
|
||||
|
||||
static int global_lineno = 1;
|
||||
static int global_expr_count=0;
|
||||
static int global_expr_max_size=0;
|
||||
|
|
Reference in New Issue