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

Issue 2262023002: Worker: Wait for termination by WorkerThreadLifecycleObserver instead of WaitableEvent (Closed)

Created:
4 years, 4 months ago by nhiroki
Modified:
4 years, 4 months ago
Reviewers:
yhirano
CC:
chromium-reviews, blink-reviews, falken, kinuko+worker_chromium.org, blink-worker-reviews_chromium.org, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Worker: Wait for termination by WorkerThreadLifecycleObserver instead of WaitableEvent WaitableEvent |WorkerThread::m_terminationEvent| is used to wait for worker thread termination in a unit test. This should be replaced with saner termination observation mechanism, that is, WorkerThreadLifecycleObserver. BUG=639153 Committed: https://crrev.com/8900a3ebc6d4be184e38ca43c3142304d37ab044 Cr-Commit-Position: refs/heads/master@{#413672}

Patch Set 1 #

Total comments: 6

Patch Set 2 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -24 lines) Patch
M third_party/WebKit/Source/core/workers/WorkerThread.h View 2 chunks +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.cpp View 2 chunks +0 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadLifecycleObserver.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadLifecycleObserver.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp View 1 8 chunks +37 lines, -9 lines 0 comments Download

Messages

Total messages: 19 (13 generated)
nhiroki
PTAL, thanks!
4 years, 4 months ago (2016-08-22 12:26:14 UTC) #8
yhirano
lgtm https://codereview.chromium.org/2262023002/diff/40001/third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp File third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp (right): https://codereview.chromium.org/2262023002/diff/40001/third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp#newcode35 third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp:35: class WorkerThreadLifecycleObserverForTest : public GarbageCollectedFinalized<WorkerThreadLifecycleObserverForTest>, public WorkerThreadLifecycleObserver { ...
4 years, 4 months ago (2016-08-23 02:23:51 UTC) #11
nhiroki
Thank you for reviewing. https://codereview.chromium.org/2262023002/diff/40001/third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp File third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp (right): https://codereview.chromium.org/2262023002/diff/40001/third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp#newcode35 third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp:35: class WorkerThreadLifecycleObserverForTest : public GarbageCollectedFinalized<WorkerThreadLifecycleObserverForTest>, ...
4 years, 4 months ago (2016-08-23 03:27:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2262023002/60001
4 years, 4 months ago (2016-08-23 03:27:59 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 4 months ago (2016-08-23 05:23:27 UTC) #17
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 05:28:00 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8900a3ebc6d4be184e38ca43c3142304d37ab044
Cr-Commit-Position: refs/heads/master@{#413672}

Powered by Google App Engine
This is Rietveld 408576698