From 168a6bed5a80eef3b6983e18df2f533ee52440d6 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Fri, 7 Dec 2007 21:11:08 +0000 Subject: [PATCH] I love fixing lock related errors in the lock debugging code. That's about as ironic as it gets in Asterisk programming land. Anyway, I spotted this bug while trying to track down why systems are locking up and acting weird in issue #11080. The mutex attribute object was marked as static in this function when it should not have been. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@91826 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/lock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index d9e5ec3726..6292398438 100644 --- a/include/asterisk/lock.h +++ b/include/asterisk/lock.h @@ -180,7 +180,7 @@ static inline void ast_reentrancy_unlock(ast_mutex_t *p_ast_mutex) static inline void ast_reentrancy_init(ast_mutex_t *p_ast_mutex) { int i; - static pthread_mutexattr_t reentr_attr; + pthread_mutexattr_t reentr_attr; for (i = 0; i < AST_MAX_REENTRANCY; i++) { p_ast_mutex->file[i] = NULL;