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

Issue 2781323003: [scheduler] Split lock in TaskQueueImpl. (Closed)

Created:
3 years, 8 months ago by altimin
Modified:
3 years, 8 months ago
CC:
chromium-reviews, blink-reviews, kinuko+watch, scheduler-bugs_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[scheduler] Split lock in TaskQueueImpl. Move immediate_incoming_queue from AnyThread and protect it with its own lock. This will allow to call TaskQueue::HasPendingImmediateWork and some other methods from TimeDomain::OnTimeDomainHasImmediateWork. BUG=699541 Review-Url: https://codereview.chromium.org/2781323003 Cr-Commit-Position: refs/heads/master@{#461443} Committed: https://chromium.googlesource.com/chromium/src/+/d7d63db66473bc81e84e1546c346566745f1f8aa

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed comments #

Total comments: 4

Patch Set 3 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -48 lines) Patch
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h View 1 3 chunks +12 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc View 1 2 20 chunks +47 lines, -44 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/work_queue.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (16 generated)
altimin
PTAL
3 years, 8 months ago (2017-03-30 13:14:52 UTC) #5
alex clarke (OOO till 29th)
https://codereview.chromium.org/2781323003/diff/1/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc File third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc (right): https://codereview.chromium.org/2781323003/diff/1/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc#newcode354 third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc:354: base::AutoLock lock(immediate_incoming_queue_lock_); Can we avoid locking this twice?
3 years, 8 months ago (2017-03-30 13:23:46 UTC) #8
altimin
PTAL https://codereview.chromium.org/2781323003/diff/1/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc File third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc (right): https://codereview.chromium.org/2781323003/diff/1/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc#newcode354 third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc:354: base::AutoLock lock(immediate_incoming_queue_lock_); On 2017/03/30 13:23:46, alex clarke wrote: ...
3 years, 8 months ago (2017-03-30 14:04:36 UTC) #11
Sami
Given that: - It's not straightforward to write the consumer of this notification in a ...
3 years, 8 months ago (2017-04-03 14:29:36 UTC) #14
altimin
PTAL https://codereview.chromium.org/2781323003/diff/20001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc File third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc (right): https://codereview.chromium.org/2781323003/diff/20001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc#newcode339 third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc:339: bool is_immediate_incoming_queue_empty; On 2017/04/03 14:29:36, Sami wrote: > ...
3 years, 8 months ago (2017-04-03 14:47:09 UTC) #17
Sami
lgtm
3 years, 8 months ago (2017-04-03 14:53:49 UTC) #18
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/2781323003/40001
3 years, 8 months ago (2017-04-03 14:54:35 UTC) #21
commit-bot: I haz the power
3 years, 8 months ago (2017-04-03 16:06:48 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/d7d63db66473bc81e84e1546c346...

Powered by Google App Engine
This is Rietveld 408576698