Skip to content
Snippets Groups Projects
Commit 222685d4 authored by Mark Michelson's avatar Mark Michelson
Browse files

Fix a bug in the rwlock tracking. ast_rwlock_unlock did not take into

account that multiple threads could hold the same rdlock at the same time.
As such, it expected that when a thread released a lock that it must have
been the last to acquire the lock as well. Erroneous error messages would
be sent to the console stating that a thread was attempting to unlock a lock
it did not own.

Now all threads are examined to be sure that the message is only printed 
when it is supposed to be printed.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@125133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 9ba79e3b
Branches release-7.2
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment