aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-29 17:33:01 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-29 17:33:01 +0000
commit45b01307e4167679492ad21e2adac84f119a66b7 (patch)
tree5658807a8ff6b4de992506a3d49d5ea474d835d1
parentbca55854e272254e9a80c364a93a11de94fd66cd (diff)
Define also when not DEBUG_THREADS
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@118954 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--include/asterisk/lock.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h
index b3141ffda..eae56f4cd 100644
--- a/include/asterisk/lock.h
+++ b/include/asterisk/lock.h
@@ -711,6 +711,11 @@ static inline int __ast_cond_timedwait(const char *filename, int lineno, const c
#else /* !DEBUG_THREADS */
+#define DEADLOCK_AVOIDANCE(lock) \
+ ast_mutex_lock(lock); \
+ usleep(1); \
+ ast_mutex_unlock(lock);
+
typedef pthread_mutex_t ast_mutex_t;