From 45b01307e4167679492ad21e2adac84f119a66b7 Mon Sep 17 00:00:00 2001 From: tilghman Date: Thu, 29 May 2008 17:33:01 +0000 Subject: Define also when not DEBUG_THREADS git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@118954 f38db490-d61c-443f-a65b-d21fe96a405b --- include/asterisk/lock.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/asterisk') 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; -- cgit v1.2.3