can_lower_nice_to.h 598 B

12345678910111213141516171819
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_POSIX_CAN_LOWER_NICE_TO_H_
  5. #define BASE_POSIX_CAN_LOWER_NICE_TO_H_
  6. namespace base {
  7. namespace internal {
  8. // Returns true if lowering the nice value of a process or thread to
  9. // |nice_value| using setpriority() or nice() should succeed. Note: A lower nice
  10. // value means a higher priority.
  11. bool CanLowerNiceTo(int nice_value);
  12. } // namespace internal
  13. } // namespace base
  14. #endif // BASE_POSIX_CAN_LOWER_NICE_TO_H_