[asterisk-commits] tilghman: trunk r118957 - in /trunk: ./ include/asterisk/lock.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu May 29 12:39:51 CDT 2008
Author: tilghman
Date: Thu May 29 12:39:50 2008
New Revision: 118957
URL: http://svn.digium.com/view/asterisk?view=rev&rev=118957
Log:
Merged revisions 118954 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r118954 | tilghman | 2008-05-29 12:33:01 -0500 (Thu, 29 May 2008) | 2 lines
Define also when not DEBUG_THREADS
........
Modified:
trunk/ (props changed)
trunk/include/asterisk/lock.h
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/include/asterisk/lock.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/lock.h?view=diff&rev=118957&r1=118956&r2=118957
==============================================================================
--- trunk/include/asterisk/lock.h (original)
+++ trunk/include/asterisk/lock.h Thu May 29 12:39:50 2008
@@ -1148,6 +1148,11 @@
#else /* !DEBUG_THREADS */
+#define DEADLOCK_AVOIDANCE(lock) \
+ ast_mutex_lock(lock); \
+ usleep(1); \
+ ast_mutex_unlock(lock);
+
typedef pthread_mutex_t ast_mutex_t;
#define AST_MUTEX_INIT_VALUE ((ast_mutex_t) PTHREAD_MUTEX_INIT_VALUE)
More information about the asterisk-commits
mailing list