Commit Graph

6 Commits

Author SHA1 Message Date
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 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 3090135f8e Do static initialization explicitly 2018-07-25 06:55:27 +08:00
trav90 b6cdd50380 Remove wrapper-style AbstractThreads for MediaTaskQueue and have callers pass an AbstractThread directly to promise APIs 2018-07-25 06:52:28 +08:00
trav90 702d802110 Add a convenience/efficiently routine to get an AbstractThread for the main thread 2018-07-25 06:52:23 +08:00
trav90 4e69a065ee Implement AbstractThread
AbstractThread is a simplification of the existing MediaPromise code that guarantees that two events will not run at the same time - either because it's a single thread or because it's a task queue.
2018-07-25 06:51:34 +08:00