New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 596925 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

media: Use PassInterface to pass InterfacePtr to another thread.

Project Member Reported by xhw...@chromium.org, Mar 22 2016

Issue description

See discussion here: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-mojo/DJ7-iHUnzdo

Today for mojo media services, we get the InterfacePtr on the main thread (using MediaInterfaceProvider which lives solely on the main thread), and then pass it to the media thread to use. This works because InterfacePtr is lazily bound to a thread, i.e. it's only bound to a thread the first time it is used, e.g. when Initialize() is called.

However, lazy bounding is a mojo implementation detail. We should not rely on it. Also, the current code is hard to understand because it is very tricky.

We should fix the code by using PassInterface() which is safer and more readable.
 

Comment 2 by xhw...@chromium.org, Mar 22 2016

Status: Started (was: Assigned)
It's seems the change is pretty trivial. I'll fix it this week.
Project Member

Comment 3 by bugdroid1@chromium.org, Mar 22 2016

Comment 4 by xhw...@chromium.org, Mar 22 2016

Status: Fixed (was: Started)

Sign in to add a comment