[asterisk-commits] tilghman: branch 1.4 r118954 - /branches/1.4/include/asterisk/lock.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu May 29 12:33:01 CDT 2008
Author: tilghman
Date: Thu May 29 12:33:01 2008
New Revision: 118954
URL: http://svn.digium.com/view/asterisk?view=rev&rev=118954
Log:
Define also when not DEBUG_THREADS
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=118954&r1=118953&r2=118954
==============================================================================
--- branches/1.4/include/asterisk/lock.h (original)
+++ branches/1.4/include/asterisk/lock.h Thu May 29 12:33:01 2008
@@ -711,6 +711,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;
More information about the asterisk-commits
mailing list