• fdoray's avatar
    Do not inherit TaskPriority in TaskTraits. · 02cf1664
    fdoray authored
    In order to make the TaskTraits constructor constexpr, do not
    call GetTaskPriorityForCurrentThread() from it. Instead, keep
    track of whether the TaskPriority was set explicitly. When the
    TaskTraits are actually used, substitute the TaskPriority with
    the return value of GetTaskPriorityForCurrentThread() if it
    wasn't set explicitly.
    Review-Url: https://codereview.chromium.org/2831883003
    Cr-Commit-Position: refs/heads/master@{#467152}
BUILD.gn 93.2 KB