From ba9f0125731e69698eeef69dcdb6c80a81dd917c Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Thu, 29 May 2008 17:33:01 +0000 Subject: [PATCH] Define also when not DEBUG_THREADS git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@118954 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/lock.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index b3141ffda3..eae56f4cd7 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;