[svn-commits] tilghman: branch 1.6.2 r273719 - in /branches/1.6.2: ./ main/autoservice.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jul 2 12:11:42 CDT 2010


Author: tilghman
Date: Fri Jul  2 12:11:38 2010
New Revision: 273719

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=273719
Log:
Merged revisions 273718 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
  r273718 | tilghman | 2010-07-02 12:10:59 -0500 (Fri, 02 Jul 2010) | 15 lines
  
  Merged revisions 273717 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r273717 | tilghman | 2010-07-02 12:09:47 -0500 (Fri, 02 Jul 2010) | 8 lines
    
    Autoservice loop optimization causes a busy loop, when channels are serviced while in hangup.
    
    (closes issue #17564)
     Reported by: ramonpeek
     Patches: 
           20100630__issue17564.diff.txt uploaded by tilghman (license 14)
     Tested by: ramonpeek
  ........
................

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/main/autoservice.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/main/autoservice.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/main/autoservice.c?view=diff&rev=273719&r1=273718&r2=273719
==============================================================================
--- branches/1.6.2/main/autoservice.c (original)
+++ branches/1.6.2/main/autoservice.c Fri Jul  2 12:11:38 2010
@@ -110,6 +110,11 @@
 		AST_LIST_UNLOCK(&aslist);
 
 		if (!x) {
+			/* If we don't sleep, this becomes a busy loop, which causes
+			 * problems when Asterisk runs at a different priority than other
+			 * user processes.  As long as we check for new channels at least
+			 * once every 10ms, we should be fine. */
+			usleep(10000);
 			continue;
 		}
 




More information about the svn-commits mailing list