Closed Bug 1187214 Opened 9 years ago Closed 9 years ago

Implement a thread-safe observer to publish events across threads

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

References

Details

Attachments

(2 files)

We will implement the observer pattern with a generic and thread-safe class. It will be used by the MediaQueue to publish push/pop/finish events across threads to its listeners.
Assignee: nobody → jwwang
Component: Audio/Video → Audio/Video: Playback
Blocks: 1188257
Bug 1187214. Part 1 - Implement MediaEventSource.
Attachment #8642905 - Flags: review?(kinetik)
Bug 1187214. Part 2 - add test cases for MediaEventSource.
Attachment #8642906 - Flags: review?(kinetik)
It is worth noting that each listener can be disconnected independently which gives more flexibility than MediaQueue::ClearListeners().
The usage will be in bug 1188257.
Blocks: 1189624
Comment on attachment 8642906 [details]
MozReview Request: Bug 1187214. Part 2 - add test cases for MediaEventSource.

https://reviewboard.mozilla.org/r/14981/#review13515

Ship It!
Attachment #8642906 - Flags: review?(kinetik) → review+
Comment on attachment 8642905 [details]
MozReview Request: Bug 1187214. Part 1 - Implement MediaEventSource.

https://reviewboard.mozilla.org/r/14979/#review13517

Ship It!

::: dom/media/MediaEventSource.h:364
(Diff revision 1)
> +    this->NotifyInternal(true /* dummp */);

Typo in comment.
Attachment #8642905 - Flags: review?(kinetik) → review+
Thanks for the review!
https://hg.mozilla.org/mozilla-central/rev/c0a6f89391ee
https://hg.mozilla.org/mozilla-central/rev/8caf2b95b275
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: