diff options
author | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-27 13:48:03 +0000 |
---|---|---|
committer | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-27 13:48:03 +0000 |
commit | db71728e5bc139ecfa97823e5613d882257cef4c (patch) | |
tree | 773f60b5e5db3b4f2e10c442f5fd11f2fa88d870 /base/process_util_win.cc | |
parent | 32065cfaaf2ef49d9e4cbbbcf21e92dcb3b10072 (diff) | |
download | chromium_src-db71728e5bc139ecfa97823e5613d882257cef4c.zip chromium_src-db71728e5bc139ecfa97823e5613d882257cef4c.tar.gz chromium_src-db71728e5bc139ecfa97823e5613d882257cef4c.tar.bz2 |
Make perftimer and run_all_perftests compile on Posix. Stub out a few things into process_util_posix, and add a function to raise to a high priority.
BUG=1343318
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1438 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util_win.cc')
-rw-r--r-- | base/process_util_win.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/base/process_util_win.cc b/base/process_util_win.cc index f09228fb..aad336cf 100644 --- a/base/process_util_win.cc +++ b/base/process_util_win.cc @@ -594,5 +594,8 @@ bool EnableLowFragmentationHeap() { return true; } -} // namespace process_util +void RaiseProcessToHighPriority() { + SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); +} +} // namespace process_util |