]> git.ipfire.org Git - thirdparty/asterisk.git/commit
lock: Improve performance of DEBUG_THREADS.
authorCorey Farrell <git@cfware.com>
Fri, 28 Sep 2018 00:32:21 +0000 (20:32 -0400)
committerCorey Farrell <git@cfware.com>
Fri, 28 Sep 2018 18:42:27 +0000 (13:42 -0500)
commitb3b95c8d3651004bae4c8a771316675967e6bef0
tree6d1314414247765c02e7bcf1393dc4860392d001
parent0ad987168e0893f1c753d73e96c8f8a7bb16c9f2
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
include/asterisk/astobj2.h
include/asterisk/lock.h
main/astobj2.c
main/lock.c