Commit Graph

18 Commits

Author SHA1 Message Date
trav90 e11d949dfb Add missing ; 2018-07-25 07:03:52 +08:00
trav90 1d17b3107d Implement direct tasks 2018-07-25 07:03:34 +08:00
trav90 4a837c3711 Remove AbstractThread::InTailDispatch
This is unused and unnecessary now that we pass this explicitly during dispatch.
2018-07-25 06:57:58 +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 834def9678 Move dispatch failure handling into dispatch itself
This is nicer than scattering the failure handling to each callsite.
2018-07-25 06:56:56 +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 70dc9fc076 Make MediaTaskQueue implement AbstractThread directly 2018-07-25 06:52:25 +08:00
Moonchild baf46a6bf1 Merge pull request #1 from mozilla/esr38: Esr38 upstream pull 2018-07-24 23:04:07 +08:00