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

Issue 5693003: Consider PlatformThread::Join() to be blocking IO. (Closed)

Created:
10 years ago by willchan no longer on Chromium
Modified:
9 years, 7 months ago
Reviewers:
Evan Martin
CC:
chromium-reviews, ben+cc_chromium.org, pam+watch_chromium.org, brettw-cc_chromium.org, joth, John Knottenbelt
Visibility:
Public.

Description

Consider PlatformThread::Join() to be blocking IO. Marks PlatformThread::Join() as blocking IO using ThreadRestrictions. Whitelists existing spots where we join on the UI/IO threads. Also noteworthy is I allow blocking IO on shutdown. BUG=65530, 66077, 66082 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68893

Patch Set 1 #

Patch Set 2 : Add comments for shutdown. #

Total comments: 5

Patch Set 3 : Add more comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -0 lines) Patch
M base/platform_thread_posix.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M base/platform_thread_win.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/geolocation/geolocation_provider.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/printing/printer_query.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
willchan no longer on Chromium
10 years ago (2010-12-10 21:37:28 UTC) #1
Evan Martin
LGTM, but please add comments :) http://codereview.chromium.org/5693003/diff/2001/base/platform_thread_posix.cc File base/platform_thread_posix.cc (right): http://codereview.chromium.org/5693003/diff/2001/base/platform_thread_posix.cc#newcode222 base/platform_thread_posix.cc:222: base::ThreadRestrictions::AssertIOAllowed(); Perhaps stick ...
10 years ago (2010-12-10 21:43:04 UTC) #2
willchan no longer on Chromium
I've added said comments. http://codereview.chromium.org/5693003/diff/2001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): http://codereview.chromium.org/5693003/diff/2001/chrome/browser/browser_process_impl.cc#newcode255 chrome/browser/browser_process_impl.cc:255: // of it on shutdown ...
10 years ago (2010-12-10 21:54:28 UTC) #3
willchan no longer on Chromium
10 years ago (2010-12-13 21:00:48 UTC) #4
Turns out I shouldn't have been trusted and this broke Windows.  I'm going to
reland after I figure out what Windows is doing.

On 2010/12/10 21:54:28, willchan wrote:
> I've added said comments.
> 
>
http://codereview.chromium.org/5693003/diff/2001/chrome/browser/browser_proce...
> File chrome/browser/browser_process_impl.cc (right):
> 
>
http://codereview.chromium.org/5693003/diff/2001/chrome/browser/browser_proce...
> chrome/browser/browser_process_impl.cc:255: // of it on shutdown for valid
> reasons.
> On 2010/12/10 21:43:04, Evan Martin wrote:
> > Heh, I hope this is the right place for this code...
> 
> What, you don't trust me? :)  Try it for yourself if you'd like.  But yeah,
from
> my extensive experience trawling through the morass of shutdown code nonsense,
> this is the right place to do it.  It's interesting to note that
APP_TERMINATING
> is not the right signal to watch, because the automation provider can trigger
> shutdown in ways that bypass APP_TERMINATING.  But this is the way we stop the
> UI thread, so it's guaranteed to always work.

Powered by Google App Engine
This is Rietveld 408576698