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: https://origsvn.digium.com/svn/asterisk/trunk@84329 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Steve Murphy
2007-10-01 23:20:20 +00:00
parent b3168a76c9
commit db26685460

View File

@@ -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;