diff options
author | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-27 14:36:19 +0000 |
---|---|---|
committer | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-27 14:36:19 +0000 |
commit | 3d5617eac0863021b9a49489aee1e6d6b829af90 (patch) | |
tree | 708c931e05ed01a5e8395cb649d8e9f30e9d7aa2 /base/process_util_posix.cc | |
parent | dd81698604d2dfe01793efbf9c3e434a423fde8f (diff) | |
download | chromium_src-3d5617eac0863021b9a49489aee1e6d6b829af90.zip chromium_src-3d5617eac0863021b9a49489aee1e6d6b829af90.tar.gz chromium_src-3d5617eac0863021b9a49489aee1e6d6b829af90.tar.bz2 |
Stub out a few things into process_util_posix.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1441 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util_posix.cc')
-rw-r--r-- | base/process_util_posix.cc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/base/process_util_posix.cc b/base/process_util_posix.cc new file mode 100644 index 0000000..0668e60 --- /dev/null +++ b/base/process_util_posix.cc @@ -0,0 +1,26 @@ +// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "base/process_util.h" + +#include <sys/types.h> +#include <unistd.h> + +#include "base/basictypes.h" + +namespace process_util { + +int GetCurrentProcId() { + return getpid(); +} + +int GetProcId(ProcessHandle process) { + return ProcessHandle; +} +void RaiseProcessToHighPriority() { + // On POSIX, we don't actually do anything here. We could try to nice() or + // setpriority() or sched_getscheduler, but these all require extra rights. +} + +} // namespace process_util |