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

Issue 2777063010: [scheduler] Make any thread lock in TaskQueueImpl reentrable. (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] Make any thread lock in TaskQueueImpl reentrable. This solves a long-standing problem of not being able to call TaskQueueImpl::HasPendingImmediateWork safely inside OnTimeDomainHasImmediateWork. Making the lock reentrable from main thread will allow main-thread only scheduling logic to call to TaskQueueImpl::HasPendingImmediateWork safely. R=skyostil@chromium.org,alexclarke@chromium.org BUG=699541

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -17 lines) Patch
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h View 2 chunks +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc View 16 chunks +46 lines, -17 lines 0 comments Download

Messages

Total messages: 8 (5 generated)
altimin
PTAL
3 years, 8 months ago (2017-03-29 17:08:18 UTC) #1
Sami
Hmm, I think recursive locks aren't supported in Chrome for a good reason since they ...
3 years, 8 months ago (2017-03-29 17:23:25 UTC) #4
altimin
3 years, 8 months ago (2017-03-30 16:47:23 UTC) #8
Message was sent while issue was closed.
Decided that we don't want reentrable locks.

Powered by Google App Engine
This is Rietveld 408576698