[asterisk-commits] mnicholson: trunk r202039 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 19 16:25:10 CDT 2009


Author: mnicholson
Date: Fri Jun 19 16:25:06 2009
New Revision: 202039

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=202039
Log:
Use sched_yield() instead of usleep(1)

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=202039&r1=202038&r2=202039
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Jun 19 16:25:06 2009
@@ -6081,7 +6081,7 @@
 	chan = ast_channel_ref(p->owner);
 	while (ast_channel_trylock(chan)) {
 		sip_pvt_unlock(p);
-		usleep(1);
+		sched_yield();
 		sip_pvt_lock(p);
 	}
 




More information about the asterisk-commits mailing list