[asterisk-commits] mmichelson: branch mmichelson/lock_backtraces r115314 - /team/mmichelson/lock...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon May 5 15:27:19 CDT 2008
Author: mmichelson
Date: Mon May 5 15:27:18 2008
New Revision: 115314
URL: http://svn.digium.com/view/asterisk?view=rev&rev=115314
Log:
Reset the backtrace to all 0's when unlocking a rwlock
Modified:
team/mmichelson/lock_backtraces/include/asterisk/lock.h
Modified: team/mmichelson/lock_backtraces/include/asterisk/lock.h
URL: http://svn.digium.com/view/asterisk/team/mmichelson/lock_backtraces/include/asterisk/lock.h?view=diff&rev=115314&r1=115313&r2=115314
==============================================================================
--- team/mmichelson/lock_backtraces/include/asterisk/lock.h (original)
+++ team/mmichelson/lock_backtraces/include/asterisk/lock.h Mon May 5 15:27:18 2008
@@ -847,6 +847,7 @@
#endif /* AST_MUTEX_INIT_W_CONSTRUCTORS */
res = pthread_rwlock_unlock(&lock->lock);
+ memset(&lock->backtrace, 0, sizeof(lock->backtrace));
ast_remove_lock_info(lock, NULL);
return res;
}
More information about the asterisk-commits
mailing list