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

Issue 2033243002: Introduce PlatformThread::Detach (Closed)

Created:
4 years, 6 months ago by robliao
Modified:
4 years, 6 months ago
Reviewers:
danakj
CC:
chromium-reviews, gab, fdoray
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce PlatformThread::Detach This will allow callers to decide at runtime if they want to detach or join against a thread. This is particularly useful for threadpools that need to detach to release resources or join to clean up during unit tests. BUG=616867 Committed: https://crrev.com/fecb785376a19f0ee4fd965b9568c59fa26fae01 Cr-Commit-Position: refs/heads/master@{#399280}

Patch Set 1 #

Total comments: 4

Patch Set 2 : CR Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -11 lines) Patch
M base/threading/platform_thread.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M base/threading/platform_thread_posix.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M base/threading/platform_thread_unittest.cc View 1 chunk +39 lines, -11 lines 0 comments Download
M base/threading/platform_thread_win.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (7 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2033243002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2033243002/1
4 years, 6 months ago (2016-06-02 21:42:13 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-03 03:00:39 UTC) #4
robliao
danakj: Please review this CL. Thanks!
4 years, 6 months ago (2016-06-07 16:00:34 UTC) #6
danakj
https://codereview.chromium.org/2033243002/diff/1/base/threading/platform_thread.h File base/threading/platform_thread.h (right): https://codereview.chromium.org/2033243002/diff/1/base/threading/platform_thread.h#newcode184 base/threading/platform_thread.h:184: // after this call. And the PlatformThreadHandle becomes invalid? ...
4 years, 6 months ago (2016-06-09 22:58:07 UTC) #7
robliao
https://codereview.chromium.org/2033243002/diff/1/base/threading/platform_thread.h File base/threading/platform_thread.h (right): https://codereview.chromium.org/2033243002/diff/1/base/threading/platform_thread.h#newcode184 base/threading/platform_thread.h:184: // after this call. On 2016/06/09 22:58:07, danakj wrote: ...
4 years, 6 months ago (2016-06-10 14:24:31 UTC) #8
danakj
LGTM
4 years, 6 months ago (2016-06-10 17:40:07 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2033243002/20001
4 years, 6 months ago (2016-06-10 18:07:30 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-10 20:23:01 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2033243002/20001
4 years, 6 months ago (2016-06-10 21:40:48 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-10 21:47:35 UTC) #16
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-10 21:48:01 UTC) #17
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 21:51:04 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/fecb785376a19f0ee4fd965b9568c59fa26fae01
Cr-Commit-Position: refs/heads/master@{#399280}

Powered by Google App Engine
This is Rietveld 408576698