[asterisk-commits] russell: branch 1.4 r91826 - /branches/1.4/include/asterisk/lock.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Dec 7 15:11:09 CST 2007
Author: russell
Date: Fri Dec 7 15:11:08 2007
New Revision: 91826
URL: http://svn.digium.com/view/asterisk?view=rev&rev=91826
Log:
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.
Modified:
branches/1.4/include/asterisk/lock.h
Modified: branches/1.4/include/asterisk/lock.h
URL: http://svn.digium.com/view/asterisk/branches/1.4/include/asterisk/lock.h?view=diff&rev=91826&r1=91825&r2=91826
==============================================================================
--- branches/1.4/include/asterisk/lock.h (original)
+++ branches/1.4/include/asterisk/lock.h Fri Dec 7 15:11:08 2007
@@ -180,7 +180,7 @@
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;
More information about the asterisk-commits
mailing list