Modify ScopedThreadMayLoadLibraryOnBackgroundThread to change priority only once
This CL is changing the behavior of the ScopedThreadMayLoadLibraryOnBackgroundThread which is used to change the thread priority on a background thread when a library can be loaded. The previous implementation was boosting the priority for the scope of the class for each execution. This is overkill since the library is only loaded once. The proposition is to keep track of the executed program counters and to avoid to boost priority twice. R=gab@chromium.org, fdoray@chromium.org Bug: 973868 Change-Id: I8c2e9e18ac7e2b922437132051eb6702f83cefaf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1775730Reviewed-by:Etienne Bergeron <etienneb@chromium.org> Reviewed-by:
François Doray <fdoray@chromium.org> Reviewed-by:
Gabriel Charette <gab@chromium.org> Commit-Queue: Etienne Bergeron <etienneb@chromium.org> Cr-Commit-Position: refs/heads/master@{#691844}
Showing
Please register or sign in to comment