commit | dda57a2c6aa319675172f8558ce8c24d9333f894 | [log] [tgz] |
---|---|---|
author | Alex Clarke <alexclarke@chromium.org> | Thu Dec 06 13:20:50 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Dec 06 13:20:50 2018 |
tree | 8363f834352b7dd3feb352ed29601f548db26660 | |
parent | 15ec682801537617ba819e09336399a51e45bf82 [diff] |
Change interleaving of delayed and immediate tasks to match MessageLoop Previously the TaskQueueSelector would allow up to 3 delayed tasks to run for every immediate task if both where ready to run. This patch changes it to a 1:1 ratio like the MessageLoop. NB neither the SequenceManager nor the MessageLoop allow delayed tasks to skip ahead of immediate tasks. In addition I've removed the PrioritizingSelector inner class which makes the code a bit more readable. In addition based on review comments I changed the style of functions to return a pointer to the WorkQueue or null rather than a bool. This in general improves readability. Bug: 863341, 891670 Change-Id: I61d4f118880f109c01ad4a2d5301acc9103b0b35 Reviewed-on: https://chromium-review.googlesource.com/c/1361103 Commit-Queue: Alex Clarke <alexclarke@chromium.org> Reviewed-by: Sami Kyöstilä <skyostil@chromium.org> Reviewed-by: Alexander Timin <altimin@chromium.org> Cr-Commit-Position: refs/heads/master@{#614329}
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 .