]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Resolve some synchronization issues in chan_iax2 scheduler handling.
authorRussell Bryant <russell@russellbryant.com>
Mon, 26 Jan 2009 21:31:59 +0000 (21:31 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 26 Jan 2009 21:31:59 +0000 (21:31 +0000)
commit722273ced3bf0befedb58019a55f90874fa3c959
treeaeb2840eb320a7e825eb27f648ce1a54f8f8f505
parent40a6283695d1c374db072c06119a30dbe7954d15
Resolve some synchronization issues in chan_iax2 scheduler handling.

The important changes here are related to the synchronization between threads
adding items into the scheduler and the scheduler handling thread.  By adjusting
the lock and condition handling, we ensure that the scheduler thread sleeps no
longer and no less than it is supposed to.  We also ensure that it does not
wake up more often than it has to.

There is no bug report associated with this.  It is just something that I found
while putting scheduler thread handling into a reusable form (review 129).

Review: http://reviewboard.digium.com/r/131/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@171452 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_iax2.c