]> 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:44:54 +0000 (14:44 -0400)
commit1ffbec46721db838bbfa3515f30a7eafba6890ac
treea2d3da23869e1f5525f9014993aee60e9d2be14b
parent160ab08840d621025213dca6231e1999422881d4
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