Revert "Base: Ensure that SetCurrentThreadPriority(BACKGROUND) sets CPU priority on Windows."
This reverts commit 5cb9cc29. Reason for revert: test PlatformThreadWinTest.SetBackgroundThreadModeFailsInIdlePriorityProcess which was added on this CL fails on some bots, https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/Win7%20%2832%29%20Tests/40510 Original change's description: > Base: Ensure that SetCurrentThreadPriority(BACKGROUND) sets CPU priority on Windows. > > Previously, SetCurrentThreadPriority(BACKGROUND) did not affect CPU > priority on Windows in a IDLE process when the > "WindowsThreadModeBackground" feature was enabled. It only affected I/O > and memory priorities. > > With this CL, a second call to ::SetThreadPriority() is made to > ensure that CPU priority is affected. > > Bug: 901483 > Change-Id: I22640c8fa56eeec489fbf0fe516359b828e39541 > Reviewed-on: https://chromium-review.googlesource.com/c/1318438 > Commit-Queue: François Doray <fdoray@chromium.org> > Reviewed-by: Gabriel Charette <gab@chromium.org> > Cr-Commit-Position: refs/heads/master@{#606200} TBR=gab@chromium.org,fdoray@chromium.org Change-Id: I6ea74d6d1fa14a7b668292e7c7ef75c5ace643e6 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 901483 Reviewed-on: https://chromium-review.googlesource.com/c/1325990Reviewed-by:Vadym Doroshenko <dvadym@chromium.org> Commit-Queue: Vadym Doroshenko <dvadym@chromium.org> Cr-Commit-Position: refs/heads/master@{#606429}
Showing
Please register or sign in to comment