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

Issue 1989723003: Use a reader-writer lock to protect the threads table in BrowserThreadImpl.

Created:
4 years, 7 months ago by Anand Mistry (off Chromium)
Modified:
4 years, 6 months ago
Reviewers:
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@rw-lock-incoming-task-queue
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use a reader-writer lock to protect the threads table in BrowserThreadImpl. If |lock| is being held while posting the task to the task runner, and the posting results in the thread being switched out, any other thread that tries to use BrowserThread to post a task will be blocked while trying to acquire |lock|.

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -12 lines) Patch
M content/browser/browser_thread_impl.cc View 1 12 chunks +13 lines, -12 lines 0 comments Download

Depends on Patchset:

Powered by Google App Engine
This is Rietveld 408576698