Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
Just curious: scheduleActions vs executeActions send icon difference
This thread has 2 replies. Displaying all posts.
Post 1 made on Friday November 25, 2011 at 06:35
xynyx
Long Time Member
Joined:
Posts:
September 2009
73
case "PS_CURSOR_LEFT": CF.widget("TUNERmenuleft","APtuner") .scheduleActions(); break;

Sending Icon will blink.

case "PS_CURSOR_LEFT": CF.widget("TUNERmenuleft","APtuner") .executeActions(); break;

Sending Icon will not blink.

Is this a bug?
Using firmware (9800) 7.2.22
Post 2 made on Friday November 25, 2011 at 14:48
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
The function executeActions is an immediate blocking call and cannot be used for example in a Page script if the widget contains a jump to another page. This was documented in the ProntoScript FAQ. Finally, as it is a blocking call, this means that the cycling of images in the send icon is prevented during this time.

So, this is not a bug and completely the reason for the introduction of scheduleActions in later firmware releases. The function scheduleActions pushes a reference to the widget to execute onto a queue such that the actions are executed by the normal UI thread when it goes idle. So, as you might suspect, there can be a time delay before the actionlist is executed. As these actions are executed by the normal UI thread, the send icon images will still cycle. This behavior also means that unlike executeActions, scheduleActions is safe to be added into a page script without forcing the user to do Activity.scheduleActions() to make call to Widget.executeActions() at a later time.
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 3 made on Friday November 25, 2011 at 18:04
xynyx
Long Time Member
Joined:
Posts:
September 2009
73
Lyndell,

Thanks for the elaborate reply!Allready changed all my executeActions to scheduleActions. Learned something, again!


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse