mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
lock: Improve performance of DEBUG_THREADS.
Add a volatile flag to lock tracking structures so we only need to use the global lock when first initializing tracking. Additionally add support for DEBUG_THREADS_LOOSE_ABI. This is used by astobj2.c to eliminate storage for tracking fields when DEBUG_THREADS is not defined. Change-Id: Iabd650908901843e9fff47ef1c539f0e1b8cb13b
This commit is contained in:
@@ -25,6 +25,10 @@
|
||||
<support_level>core</support_level>
|
||||
***/
|
||||
|
||||
/* This reduces the size of lock structures within astobj2 objects when
|
||||
* DEBUG_THREADS is not defined. */
|
||||
#define DEBUG_THREADS_LOOSE_ABI
|
||||
|
||||
#include "asterisk.h"
|
||||
|
||||
#include "asterisk/_private.h"
|
||||
|
Reference in New Issue
Block a user