diff options
-rwxr-xr-x | include/asterisk/lock.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index 39af89736..38c4e64ac 100755 --- a/include/asterisk/lock.h +++ b/include/asterisk/lock.h @@ -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); |