mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +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:
		| @@ -55,7 +55,6 @@ void * attribute_malloc __ast_calloc(size_t num, size_t len, const char *file, i | ||||
| #endif | ||||
|  | ||||
| #ifdef DEBUG_THREADS | ||||
| #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); | ||||
| void ast_store_lock_info(enum ast_lock_type type, const char *filename, | ||||
| @@ -70,6 +69,7 @@ void ast_remove_lock_info(void *lock_addr, struct ast_bt *bt) | ||||
|     /* not a lot to do in a standalone w/o threading! */ | ||||
| } | ||||
|  | ||||
| #ifdef HAVE_BKTR | ||||
| int __ast_bt_get_addresses(struct ast_bt *bt); | ||||
| int __ast_bt_get_addresses(struct ast_bt *bt) | ||||
| { | ||||
| @@ -88,20 +88,6 @@ char **__ast_bt_get_symbols(void **addresses, size_t num_frames) | ||||
| 	} | ||||
| 	return foo; | ||||
| } | ||||
| #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); | ||||
| 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_remove_lock_info(void *lock_addr); | ||||
| void ast_remove_lock_info(void *lock_addr) | ||||
| { | ||||
|     /* not a lot to do in a standalone w/o threading! */ | ||||
| } | ||||
| #endif /* HAVE_BKTR */ | ||||
|  | ||||
| void ast_suspend_lock_info(void *lock_addr) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user