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_frame | |
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_frame')
-rw-r--r-- | chrome_frame/chrome_frame_automation.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome_frame/chrome_frame_automation.h b/chrome_frame/chrome_frame_automation.h index e903268..150a778 100644 --- a/chrome_frame/chrome_frame_automation.h +++ b/chrome_frame/chrome_frame_automation.h @@ -226,7 +226,8 @@ class AutomationProxyCacheEntry DWORD WaitForThread(DWORD timeout) { // NOLINT DCHECK(thread_.get()); - return ::WaitForSingleObject(thread_->thread_handle(), timeout); + return ::WaitForSingleObject(thread_->thread_handle().platform_handle(), + timeout); } bool IsSameProfile(const std::wstring& name) const { |