OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/process/process.h" | 5 #include "base/process/process.h" |
6 | 6 |
7 #include <sys/resource.h> | 7 #include <sys/resource.h> |
8 #include <sys/wait.h> | 8 #include <sys/wait.h> |
9 | 9 |
10 #include "base/files/scoped_file.h" | 10 #include "base/files/scoped_file.h" |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 DCHECK(IsValid()); | 317 DCHECK(IsValid()); |
318 return false; | 318 return false; |
319 } | 319 } |
320 #endif // !defined(OS_LINUX) | 320 #endif // !defined(OS_LINUX) |
321 | 321 |
322 int Process::GetPriority() const { | 322 int Process::GetPriority() const { |
323 DCHECK(IsValid()); | 323 DCHECK(IsValid()); |
324 return getpriority(PRIO_PROCESS, process_); | 324 return getpriority(PRIO_PROCESS, process_); |
325 } | 325 } |
326 | 326 |
327 } // namspace base | 327 } // namespace base |
OLD | NEW |