mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 19:43:03 +00:00
do the multiple-lock check for cond_wait properly...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7219 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -396,7 +396,7 @@ static inline int __ast_cond_wait(const char *filename, int lineno, const char *
|
||||
#endif
|
||||
}
|
||||
|
||||
if (t->reentrancy)
|
||||
if (t->reentrancy > 1)
|
||||
__ast_mutex_logger("%s line %d (%s): mutex '%s' locked more than once, cond_wait will block!\n",
|
||||
filename, lineno, func, mutex_name);
|
||||
|
||||
@@ -459,7 +459,7 @@ static inline int __ast_cond_timedwait(const char *filename, int lineno, const c
|
||||
#endif
|
||||
}
|
||||
|
||||
if (t->reentrancy)
|
||||
if (t->reentrancy > 1)
|
||||
__ast_mutex_logger("%s line %d (%s): mutex '%s' locked more than once, cond_timedwait will block!\n",
|
||||
filename, lineno, func, mutex_name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user