[Freeswitch-dev] Question about switch_cond_next()

Alex To tonhudung at gmail.com
Fri Jan 29 07:03:04 PST 2010


Thank you, Anthony

 

Alex

 

From: freeswitch-dev-bounces at lists.freeswitch.org
[mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Anthony
Minessale
Sent: Friday, January 29, 2010 12:33 AM
To: freeswitch-dev at lists.freeswitch.org
Subject: Re: [Freeswitch-dev] Question about switch_cond_next()

 

cond_next is equiv to cond_yield(1000) or 1 ms
actual time will vary depending on OS and HW



On Thu, Jan 28, 2010 at 8:10 AM, Alex To <tonhudung at gmail.com> wrote:

Hi, would someone clarify this for me please

 

Is it right to say that switch_cond_next() does only one thing which is to
put the current thread to sleep for a period of time (1 second) ?

 

Is it equivalent to, let's say, Thread.Sleep(xxx); or it also does something
else besides putting the current thead to sleep ? 

 

Is switch_cond_yield the same as switch_cond_next, except that
switch_cond_yield accepts parameter as the input interval ?

 

Thanks

 

Regards

 

Alex To


_______________________________________________
FreeSWITCH-dev mailing list
FreeSWITCH-dev at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org




-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
<mailto:MSN%3Aanthony_minessale at hotmail.com> 
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
<mailto:PAYPAL%3Aanthony.minessale at gmail.com> 
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
<mailto:sip%3A888 at conference.freeswitch.org> 
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org
<mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org> 
pstn:+19193869900

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20100129/b0aec96d/attachment-0001.html 


More information about the FreeSWITCH-dev mailing list