Commit Graph

18 Commits

Author SHA1 Message Date
trav90 d10f7d3293 Add an extra assertion to MediaTaskQueue::BeginShutdown 2018-07-25 07:05:29 +08:00
trav90 dfc6198675 Tighten up a couple existing assertions 2018-07-25 06:58:04 +08:00
trav90 214afd47eb Assert against potential deadlocks between synchronous MediaTaskQueue operations and tail dispatchers 2018-07-25 06:58:00 +08:00
trav90 78e189b54a Do tail dispatch automatically 2018-07-25 06:57:52 +08:00
trav90 a3d351f76a Adjust tail dispatching assertions 2018-07-25 06:57:50 +08:00
trav90 b6bb9afb37 Move the GetCurrent TLS logic into AbstractThread 2018-07-25 06:57:47 +08:00
trav90 a2ebb642ae Mark MediaTaskQueue::SyncDispatch as deprecated
Gonk media code should be the only place where this is still used. Marking as deprecated for now, and I will remove it at a future point in time as part of a planned cleanup of unused media code.
2018-07-25 06:57:14 +08:00
trav90 c243a206bc Align the failure handling of the TemporaryRef Dispatch overload with its companion 2018-07-25 06:57:02 +08:00
trav90 7e6dac538d Change the canonical internal smart pointer type in MediaTaskQueue to the XPCOM style 2018-07-25 06:57:00 +08:00
trav90 c20e81736f Remove the concept of forced dispatch
This was originally added to make MediaPromise dispatch reliable in the
presence of the Flush() feature of MediaTaskQueue. That feature has
now been restricted to a special subclass (which we should eventually eliminate),
so we can just assert that MediaPromises are never used on those task queues
and simplify the rest of the code.
2018-07-25 06:56:58 +08:00
trav90 d657c42169 Rescope monitor
This is possible now that we're not manually nulling out mRunningThread anymore.
2018-07-25 06:56:19 +08:00
trav90 865c34777f Make mRunningThread atomic and manage it in AutoTaskGuard 2018-07-25 06:56:17 +08:00
trav90 dff20bff17 Make MediaPromises operate with TaskDispatchers 2018-07-25 06:55:38 +08:00
trav90 42bb7c8c2c Implement the ability to assert tail dispatch
In order to make sure that the MDSM properly dispatches everything via tail dispatch, we want verification that is more robust than simple inspection.
2018-07-25 06:55:36 +08:00
trav90 5b7f7791e7 Implement a post-run TaskDispatcher for MediaTaskQueue 2018-07-25 06:55:33 +08:00
trav90 533987a47d Implement the ability to get the currently running task queue
This will be useful for asserting things.
2018-07-25 06:55:30 +08:00
trav90 fa6e463187 Make MediaTaskQueue::IsCurrentThreadIn actually do the right thing 2018-07-25 01:02:34 +08:00
Moonchild baf46a6bf1 Merge pull request #1 from mozilla/esr38: Esr38 upstream pull 2018-07-24 23:04:07 +08:00