[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] LinphoneCore.iterate() in Android

From: Tony Nguyen
Subject: Re: [Linphone-developers] LinphoneCore.iterate() in Android
Date: Tue, 12 Jan 2016 16:03:04 +0000

1) I would do 100ms. It's really up to you how do you want to take the CPU 

2) If you have the iterate run in a background thread, you have to have code 
lock around the iterate, and other core function. Otherwise, you may have 
unexpected crashed. However, be aware that some function call will be initiated 
from the iterate function that create the event. If you call some of you locked 
function in the event handle, you will have a deadlock issue.

I use liblinphone on Qt (C++) and C#, not sure how much different with Java on 

-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of address@hidden
Sent: Monday, January 11, 2016 12:01 PM
To: address@hidden
Subject: Linphone-developers Digest, Vol 155, Issue 9

Send Linphone-developers mailing list submissions to

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to

You can reach the person managing the list at

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of Linphone-developers digest..."

Today's Topics:

   1. LinphoneCore.iterate() in Android (Eugene Punsal Lozada)


Message: 1
Date: Mon, 11 Jan 2016 13:43:34 +0800
From: Eugene Punsal Lozada <address@hidden>
To: address@hidden
Subject: [Linphone-developers] LinphoneCore.iterate() in Android
Content-Type: text/plain; charset=utf-8

I?d like to get some clarification on properly setting up the 
LinphoneCore.iterate() loop in Android

1) For mobile, what is the most ideal delay between two calls to iterate()? The 
reference android app schedules a TimerTask every 20 ms.  Are there any factors 
or parameters that should be driving this value?

2) The documentation for LinphoneCore.iterate() indicates that iterate() should 
be called in the same thread as other liblinphone methods.    Right now in my 
test application, I?m calling iterate() in a background thread running inside a 
scheduledexecutorservice.  So when the doc states that other liblinphone 
methods should be called in the same thread, does that mean I should dispatch 
the calls to core methods like accept(), terminate etc? to the same thread?  In 
the reference linphone android app, I can see that LinphoneManager dispatches 
the call to iterate() to the UI thread.  Is this good practice?


Linphone-developers mailing list

End of Linphone-developers Digest, Vol 155, Issue 9

reply via email to

[Prev in Thread] Current Thread [Next in Thread]