mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 19:16:46 +00:00
Merged revisions 118954 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r118954 | tilghman | 2008-05-29 12:33:01 -0500 (Thu, 29 May 2008) | 2 lines Define also when not DEBUG_THREADS ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@118957 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1148,6 +1148,11 @@ static inline int _ast_rwlock_trywrlock(ast_rwlock_t *lock, const char *name,
|
|||||||
|
|
||||||
#else /* !DEBUG_THREADS */
|
#else /* !DEBUG_THREADS */
|
||||||
|
|
||||||
|
#define DEADLOCK_AVOIDANCE(lock) \
|
||||||
|
ast_mutex_lock(lock); \
|
||||||
|
usleep(1); \
|
||||||
|
ast_mutex_unlock(lock);
|
||||||
|
|
||||||
typedef pthread_mutex_t ast_mutex_t;
|
typedef pthread_mutex_t ast_mutex_t;
|
||||||
|
|
||||||
#define AST_MUTEX_INIT_VALUE ((ast_mutex_t) PTHREAD_MUTEX_INIT_VALUE)
|
#define AST_MUTEX_INIT_VALUE ((ast_mutex_t) PTHREAD_MUTEX_INIT_VALUE)
|
||||||
|
Reference in New Issue
Block a user