mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 07:01:09 +00:00
We went to the trouble of creating a method of tracking failed trylocks, then never turned it on (oops).
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89045 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -422,7 +422,7 @@ static inline int __ast_pthread_mutex_trylock(const char *filename, int lineno,
|
|||||||
if (t->track)
|
if (t->track)
|
||||||
ast_mark_lock_acquired();
|
ast_mark_lock_acquired();
|
||||||
} else if (t->track) {
|
} else if (t->track) {
|
||||||
ast_remove_lock_info(&t->mutex);
|
ast_mark_lock_failed();
|
||||||
}
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
Reference in New Issue
Block a user