Your Digital Media Has Never Looked So Good

 
greubel
Topic Author
Posts: 708
Joined: Wed Feb 10, 2010 4:21 pm

How does the msg port work ?

Mon Jul 29, 2013 7:09 am

Has anyone else noticed this behavior ?

My application uses a common MSG routine to handle all interrupts posted to a single port. If there is a lot of network activity, the interrupts for the remote appear to always go to the bottom of the queue. This causes really sluggish and erratic behavior on the screen with the remote. It appears that all of the network interrupts are processed before the remote messages.

I changed the application to have two ports, one for my screens and another for everything else. The code now checks for a msg on the screen port and if nothing queued, checks the other port. So now when the remote is clicked, I get a response in a timely manner. Before when I clicked the remote a couple of times, I could get a loooooong pause and then all the remote clicks.

Is there any particular sequence that things are posted to the msg port ? or is there a priority scheme that things are processed ?
 
User avatar
RokuKevin
Roku Engineering
Posts: 796
Joined: Tue Sep 22, 2009 2:29 pm

Re: How does the msg port work ?

Mon Jul 29, 2013 10:46 am

msgs are delivered in Fifo order. There is no priority scheme in the delivery of the msgs (though you could create a priority scheme in the processing of msgs).

--Kevin

Who is online

Users browsing this forum: No registered users and 6 guests