[Base] Change CanIncreaseCurrentThreadPriority() to CanIncreaseThreadPriority(ThreadPriority).
The function is renamed from CanIncreaseCurrentThreadPriority() to CanIncreaseThreadPriority() so it's clear that it doesn't return a per-thread value. Also, a ThreadPriority argument is added to allow implementations to return a different value depending on the target priority. On Linux for example, a priority increase should succeed if the target priority is within the range allowed by RLIMIT_NICE. This is a no-op CL from an execution point of view. Bug: 816389 Change-Id: I98cb640527cc2cccb85db45395210e41d6bc5f64 Reviewed-on: https://chromium-review.googlesource.com/1187506 Commit-Queue: François Doray <fdoray@chromium.org> Reviewed-by:Gabriel Charette <gab@chromium.org> Cr-Commit-Position: refs/heads/master@{#589432}
Showing
Please register or sign in to comment