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:
Kevin P. Fleming
2005-11-29 14:26:22 +00:00
parent 7dc2449f3a
commit bf9d4b103d

View File

@@ -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);