diff options
author | epenner@chromium.org <epenner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-22 00:01:38 +0000 |
---|---|---|
committer | epenner@chromium.org <epenner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-22 00:01:38 +0000 |
commit | 54e6ff8ff7194e231fa5dfe49304574f189495ca (patch) | |
tree | 896f968b6eccc67a7c123b257a36bb7fa3fb918c /chrome/browser/printing | |
parent | 7fba3e550c138bf159589476c707a7e1d536055d (diff) | |
download | chromium_src-54e6ff8ff7194e231fa5dfe49304574f189495ca.zip chromium_src-54e6ff8ff7194e231fa5dfe49304574f189495ca.tar.gz chromium_src-54e6ff8ff7194e231fa5dfe49304574f189495ca.tar.bz2 |
Reland: base: Support setting thread priorities generically.
This patch supports setting priorities across platforms
at the PlatformThread level, by stashing thread id into the
thread handle on linux/android.
Since this adds more platform specific code, and #ifdefs
were starting to get unwieldy, all platform specific code
is moved into _platform.cc files, with the exception of the
'default' implementation, which stay in _posix.
BUG=170549
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201202
Review URL: https://chromiumcodereview.appspot.com/12741012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201389 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/printing')
-rw-r--r-- | chrome/browser/printing/print_job.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/printing/print_job.cc b/chrome/browser/printing/print_job.cc index 13cb4ca..6c91282 100644 --- a/chrome/browser/printing/print_job.cc +++ b/chrome/browser/printing/print_job.cc @@ -331,7 +331,7 @@ void PrintJob::ControlledWorkerShutdown() { // - We don't want to run tasks while the thread is quitting. // - We want this code path to wait on the thread to quit before continuing. MSG msg; - HANDLE thread_handle = worker_->thread_handle(); + HANDLE thread_handle = worker_->thread_handle().platform_handle(); for (; thread_handle;) { // Note that we don't do any kind of message prioritization since we don't // execute any pending task or timer. |