mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 16:20:37 +00:00
Single API for ast_store_lock_info and ast_remove_lock_info.
This makes the 'bt' parameter unconditional for ast_store_lock_info and ast_remove_lock_info. The 'bt' parameter is unused when HAVE_BKTR is undefined. Change-Id: Ieced0e920928b735a39c3b5952b806c473d67453
This commit is contained in:
@@ -722,13 +722,8 @@ static void lock_info_destroy(void *data)
|
||||
AST_THREADSTORAGE_CUSTOM(thread_lock_info, NULL, lock_info_destroy);
|
||||
#endif /* ! LOW_MEMORY */
|
||||
|
||||
#ifdef HAVE_BKTR
|
||||
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, struct ast_bt *bt)
|
||||
#else
|
||||
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)
|
||||
#endif
|
||||
{
|
||||
#if !defined(LOW_MEMORY)
|
||||
struct thr_lock_info *lock_info;
|
||||
@@ -910,11 +905,7 @@ void ast_restore_lock_info(void *lock_addr)
|
||||
}
|
||||
|
||||
|
||||
#ifdef HAVE_BKTR
|
||||
void ast_remove_lock_info(void *lock_addr, struct ast_bt *bt)
|
||||
#else
|
||||
void ast_remove_lock_info(void *lock_addr)
|
||||
#endif
|
||||
{
|
||||
#if !defined(LOW_MEMORY)
|
||||
struct thr_lock_info *lock_info;
|
||||
|
||||
Reference in New Issue
Block a user