diff options
author | epenner@chromium.org <epenner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-21 03:15:49 +0000 |
---|---|---|
committer | epenner@chromium.org <epenner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-21 03:15:49 +0000 |
commit | a688c89c25dd5c966b112cd5dd8ef084698d363e (patch) | |
tree | 5f12b910f6f70d93b28a0ca96e7a51bbaee0cdd1 /chrome_frame | |
parent | f3988515eb7595a7553ad76004847d88356bb8bc (diff) | |
download | chromium_src-a688c89c25dd5c966b112cd5dd8ef084698d363e.zip chromium_src-a688c89c25dd5c966b112cd5dd8ef084698d363e.tar.gz chromium_src-a688c89c25dd5c966b112cd5dd8ef084698d363e.tar.bz2 |
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
Review URL: https://chromiumcodereview.appspot.com/12741012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201202 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 { |