diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-29 00:32:52 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-29 00:32:52 +0000 |
commit | e43eddf1a5887c4b249af3daa024c1107ce254a1 (patch) | |
tree | 994df09c627978ef3fb93a9fadebd00bebbcb31d /base/process.h | |
parent | a672cb9dce10306f3b149802653dbb554b326a44 (diff) | |
download | chromium_src-e43eddf1a5887c4b249af3daa024c1107ce254a1.zip chromium_src-e43eddf1a5887c4b249af3daa024c1107ce254a1.tar.gz chromium_src-e43eddf1a5887c4b249af3daa024c1107ce254a1.tar.bz2 |
Changes to base/ from a combination of FreeBSD and OpenBSD patches.
Review URL: http://codereview.chromium.org/495002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35321 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process.h')
-rw-r--r-- | base/process.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/base/process.h b/base/process.h index 53512ce..6ac29e9 100644 --- a/base/process.h +++ b/base/process.h @@ -29,7 +29,7 @@ typedef pid_t ProcessId; const ProcessHandle kNullProcessHandle = 0; #endif -#if defined(OS_LINUX) +#if defined(OS_POSIX) && !defined(OS_MACOSX) // saved_priority_ will be set to this to indicate that it's not holding // a valid value. -20 to 19 are valid process priorities. const int kUnsetProcessPriority = 256; @@ -38,13 +38,13 @@ const int kUnsetProcessPriority = 256; class Process { public: Process() : process_(kNullProcessHandle) { -#if defined(OS_LINUX) +#if defined(OS_POSIX) && !defined(OS_MACOSX) saved_priority_ = kUnsetProcessPriority; #endif } explicit Process(ProcessHandle handle) : process_(handle) { -#if defined(OS_LINUX) +#if defined(OS_POSIX) && !defined(OS_MACOSX) saved_priority_ = kUnsetProcessPriority; #endif } @@ -57,7 +57,7 @@ class Process { ProcessHandle handle() const { return process_; } void set_handle(ProcessHandle handle) { process_ = handle; -#if defined(OS_LINUX) +#if defined(OS_POSIX) && !defined(OS_MACOSX) saved_priority_ = kUnsetProcessPriority; #endif } @@ -93,7 +93,7 @@ class Process { private: ProcessHandle process_; -#if defined(OS_LINUX) +#if defined(OS_POSIX) && !defined(OS_MACOSX) // Holds the priority that the process was set to when it was backgrounded. // If the process wasn't backgrounded it will be kUnsetProcessPriority. int saved_priority_; |