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