Commit Graph

5 Commits

Author SHA1 Message Date
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