From a7ef07a46af14800cffbebc0fc222c60b52b9e30 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Wed, 22 Jul 2009 11:12:35 +0000 Subject: Ticket #922: Option to enable mutex related logging to assist troubleshooting concurrency problems git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2843 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/config.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'pjlib/include/pj/config.h') diff --git a/pjlib/include/pj/config.h b/pjlib/include/pj/config.h index b51a7585..0ae89972 100644 --- a/pjlib/include/pj/config.h +++ b/pjlib/include/pj/config.h @@ -328,6 +328,18 @@ # endif #endif +/** + * Enable this macro to activate logging to mutex/semaphore related events. + * This is useful to troubleshoot concurrency problems such as deadlocks. + * In addition, you should also add PJ_LOG_HAS_THREAD_ID flag to the + * log decoration to assist the troubleshooting. + * + * Default: 0 + */ +#ifndef PJ_DEBUG_MUTEX +# define PJ_DEBUG_MUTEX 0 +#endif + /** * Expand functions in *_i.h header files as inline. * -- cgit v1.2.3