commit | 1eb2d22874249cebe5620253b02fe9a4f551a420 | [log] [tgz] |
---|---|---|
author | Dave Tapuska <dtapuska@chromium.org> | Wed Dec 19 15:01:54 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Dec 19 15:01:54 2018 |
tree | dc2c9442977b2c941e448a1576a6a0dced4517f3 | |
parent | 45e536a9674fabe334db2fe58c1f5cd0b9757425 [diff] |
Pausing Worker Task Scheduler support With the cleanup of Pausable objects it was discovered that workers don't pause their event queues like the main thread does. Add support to pause certain tasks (that match the main thread event queue). Worker tasks that are pausable (import & evaluate) are moved to the kDOMManipulation queue from the kInternalWorker queue. The kDOMManipulation is to be used for the connect message; see https://html.spec.whatwg.org/multipage/workers.html#worker-processing-model The kDOMManipulation queue is pausable whereas kInternalWorker is not. This fixes an ordering issues that pausing the queues generates and also will allow us in the future to remove the paused task list in the worker global scope. BUG=907125 Change-Id: I21d30323107244f04e6a8fe179f2a8ebb3dad144 Reviewed-on: https://chromium-review.googlesource.com/c/1377347 Commit-Queue: Dave Tapuska <dtapuska@chromium.org> Reviewed-by: Matt Falkenhagen <falken@chromium.org> Reviewed-by: Alexander Timin <altimin@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#617833}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .