diff options
-rw-r--r-- | include/asterisk/lock.h | 5 |
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; |