Closed Bug 1649294 Opened 4 years ago Closed 4 years ago

Make RemoteDecoder work with background taskqueue

Categories

(Core :: Audio/Video: Playback, task)

task

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: jya, Assigned: jya)

References

Details

Attachments

(1 file)

Split from bug 1634846.

Current the RemoteDecoderParent/Child create a manager thread ; this was required as MessageChannel only worked with single thread or MessageLoop.

Once bug 1634846 is fixed; it's no longer required and we can use a background taskqueue reducing the number of threads use at any given time

There's a small race that can happen when the remote decoder gets shutdown during xpcom shutdown; that would cause GetCurrentSerialEventTarget to return null. Leading to an assertion failure in ActorLifecycleProxy thread-safety check when PRemoteDecoderManagerParent gets destroyed.

So we use a background taskqueue instead and cleanup a bit the threading code in there allowed thanks to the TaskQueue ability to not require an explicit shutdown.

Pushed by jyavenard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fda262d73a13
Make RemoteDecoder use a background taskqueue. r=mattwoodrow
Flags: needinfo?(jyavenard)
Pushed by jyavenard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c634db4960d3
Make RemoteDecoder use a background taskqueue. r=mattwoodrow,andi
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: