Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Issue 1015503002: Deduplicate PlatformThread's POSIX implementations of SetThreadPriority. (Closed)

Created:
5 years, 9 months ago by gab
Modified:
5 years, 9 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@background_threads
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Deduplicate PlatformThread's POSIX implementations of SetThreadPriority. This deduplication becomes a particularly good win when implementing GetThreadPriority() in https://codereview.chromium.org/1006933003/ BUG=456903, 468793 Committed: https://crrev.com/bb0d0b93645861e9e4dc66d31b674fdf2965ec4e Cr-Commit-Position: refs/heads/master@{#321403}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : some commit fixes #

Patch Set 4 : Mac is special #

Patch Set 5 : fix includes? #

Patch Set 6 : more fixes #

Total comments: 22

Patch Set 7 : nits and compile fixes #

Patch Set 8 : exclude internal_posix file on Mac #

Patch Set 9 : in GN too #

Patch Set 10 : ==0 is true for setschedparam #

Patch Set 11 : tweak comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -163 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M base/base.gypi View 1 2 3 4 5 6 7 3 chunks +5 lines, -1 line 0 comments Download
M base/threading/platform_thread_android.cc View 1 2 3 4 1 chunk +32 lines, -55 lines 0 comments Download
M base/threading/platform_thread_freebsd.cc View 1 2 3 4 5 6 7 8 9 2 chunks +26 lines, -46 lines 0 comments Download
A base/threading/platform_thread_internal_posix.h View 1 1 chunk +35 lines, -0 lines 0 comments Download
A base/threading/platform_thread_internal_posix.cc View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download
M base/threading/platform_thread_linux.cc View 1 2 3 4 5 6 7 8 9 2 chunks +24 lines, -52 lines 0 comments Download
M base/threading/platform_thread_posix.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +33 lines, -9 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
gab
Hey Ricardo, I'm trying to add full SetThreadPriority() support on Windows (https://codereview.chromium.org/1006933003/) + cross-platform tests ...
5 years, 9 months ago (2015-03-17 20:12:52 UTC) #2
rvargas (doing something else)
On 2015/03/17 20:12:52, gab wrote: > Hey Ricardo, > > I'm trying to add full ...
5 years, 9 months ago (2015-03-17 22:13:03 UTC) #3
rvargas (doing something else)
https://codereview.chromium.org/1015503002/diff/100001/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/1015503002/diff/100001/base/BUILD.gn#newcode488 base/BUILD.gn:488: "threading/platform_thread_internal_posix.cc", twice https://codereview.chromium.org/1015503002/diff/100001/base/threading/platform_thread_android.cc File base/threading/platform_thread_android.cc (right): https://codereview.chromium.org/1015503002/diff/100001/base/threading/platform_thread_android.cc#newcode41 base/threading/platform_thread_android.cc:41: {kThreadPriority_RealtimeAudio, ...
5 years, 9 months ago (2015-03-17 22:15:22 UTC) #4
gab
Thanks PTAL. https://codereview.chromium.org/1015503002/diff/100001/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/1015503002/diff/100001/base/BUILD.gn#newcode488 base/BUILD.gn:488: "threading/platform_thread_internal_posix.cc", On 2015/03/17 22:15:21, rvargas wrote: > ...
5 years, 9 months ago (2015-03-18 19:01:06 UTC) #6
gab
Thanks PTAL.
5 years, 9 months ago (2015-03-18 19:04:51 UTC) #7
rvargas (doing something else)
https://codereview.chromium.org/1015503002/diff/100001/base/threading/platform_thread_android.cc File base/threading/platform_thread_android.cc (right): https://codereview.chromium.org/1015503002/diff/100001/base/threading/platform_thread_android.cc#newcode41 base/threading/platform_thread_android.cc:41: {kThreadPriority_RealtimeAudio, -16}, On 2015/03/18 19:01:05, gab wrote: > On ...
5 years, 9 months ago (2015-03-18 22:54:23 UTC) #8
gab
Tweaked comment, keeping rest as-is to balance my own pet-peeves ;-). https://codereview.chromium.org/1015503002/diff/100001/base/threading/platform_thread_posix.cc File base/threading/platform_thread_posix.cc (right): ...
5 years, 9 months ago (2015-03-19 15:32:50 UTC) #9
rvargas (doing something else)
lgtm
5 years, 9 months ago (2015-03-19 17:50:45 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1015503002/220001
5 years, 9 months ago (2015-03-19 17:51:52 UTC) #12
commit-bot: I haz the power
Committed patchset #11 (id:220001)
5 years, 9 months ago (2015-03-19 19:08:30 UTC) #13
commit-bot: I haz the power
5 years, 9 months ago (2015-03-19 19:08:56 UTC) #14
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/bb0d0b93645861e9e4dc66d31b674fdf2965ec4e
Cr-Commit-Position: refs/heads/master@{#321403}

Powered by Google App Engine
This is Rietveld 408576698