|
|
Chromium Code Reviews
DescriptionFix Thread::StopSoon() documentation.
It definitely can and ThreadTest.StopTwiceNop even exercises precisely
doing that.
BUG=629139
Review-Url: https://codereview.chromium.org/2650073004
Cr-Commit-Position: refs/heads/master@{#446116}
Committed: https://chromium.googlesource.com/chromium/src/+/fc17e28f48e807564535c1447075656e622094a1
Patch Set 1 #Patch Set 2 : rebase on r446085 #Messages
Total messages: 21 (13 generated)
The CQ bit was checked by gab@chromium.org to run a CQ dry run
gab@chromium.org changed reviewers: + danakj@chromium.org
Dana PTAL
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
LGTM
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by gab@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Failed to apply patch for base/threading/thread.h:
While running git apply --index -p1;
error: patch failed: base/threading/thread.h:164
error: base/threading/thread.h: patch does not apply
Patch: base/threading/thread.h
Index: base/threading/thread.h
diff --git a/base/threading/thread.h b/base/threading/thread.h
index
f103e3d22881dec0b0c3b6d6cf423f9b812730f8..0575ab4d6ef53df067b4137a1259ee4f3c4ecfa6
100644
--- a/base/threading/thread.h
+++ b/base/threading/thread.h
@@ -164,9 +164,8 @@ class BASE_EXPORT Thread : PlatformThread::Delegate {
// deadlock on Windows with printer worker thread. In any other case, Stop()
// should be used.
//
- // StopSoon should not be called multiple times as it is risky to do so. It
- // could cause a timing issue in message_loop() access. Call Stop() to reset
- // the thread object once it is known that the thread has quit.
+ // Call Stop() to reset the thread object once it is known that the thread
has
+ // quit.
void StopSoon();
// Returns the message loop for this thread. Use the MessageLoop's
The CQ bit was checked by gab@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Failed to apply patch for base/threading/thread.h:
While running git apply --index -p1;
error: patch failed: base/threading/thread.h:164
error: base/threading/thread.h: patch does not apply
Patch: base/threading/thread.h
Index: base/threading/thread.h
diff --git a/base/threading/thread.h b/base/threading/thread.h
index
f103e3d22881dec0b0c3b6d6cf423f9b812730f8..0575ab4d6ef53df067b4137a1259ee4f3c4ecfa6
100644
--- a/base/threading/thread.h
+++ b/base/threading/thread.h
@@ -164,9 +164,8 @@ class BASE_EXPORT Thread : PlatformThread::Delegate {
// deadlock on Windows with printer worker thread. In any other case, Stop()
// should be used.
//
- // StopSoon should not be called multiple times as it is risky to do so. It
- // could cause a timing issue in message_loop() access. Call Stop() to reset
- // the thread object once it is known that the thread has quit.
+ // Call Stop() to reset the thread object once it is known that the thread
has
+ // quit.
void StopSoon();
// Returns the message loop for this thread. Use the MessageLoop's
The CQ bit was checked by gab@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from danakj@chromium.org Link to the patchset: https://codereview.chromium.org/2650073004/#ps20001 (title: "rebase on r446085")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 20001, "attempt_start_ts": 1485372917841550,
"parent_rev": "333889f407e49eca681b3354547221022f4d622c", "commit_rev":
"fc17e28f48e807564535c1447075656e622094a1"}
Message was sent while issue was closed.
Description was changed from ========== Fix Thread::StopSoon() documentation. It definitely can and ThreadTest.StopTwiceNop even exercises precisely doing that. BUG=629139 ========== to ========== Fix Thread::StopSoon() documentation. It definitely can and ThreadTest.StopTwiceNop even exercises precisely doing that. BUG=629139 Review-Url: https://codereview.chromium.org/2650073004 Cr-Commit-Position: refs/heads/master@{#446116} Committed: https://chromium.googlesource.com/chromium/src/+/fc17e28f48e807564535c1447075... ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/fc17e28f48e807564535c1447075... |
