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

Issue 18824: thread.cc race fix take 2 (Closed)

Created:
11 years, 11 months ago by John Grabowski
Modified:
9 years, 6 months ago
Reviewers:
Mark Mentovai, agl, jeremy
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Moved Init() before startup_data_->event.Signal() because derived classes may not be safe to use until Init() has been called. As an example, RenderThread() creates it's IPC::SyncChannel in Init(), so it isn't safe to call Send() method until after. Update use of a Thread (hit with ui_tests) to no longer require Init() be called after the startup event is signaled (required old thread behavior). Ran a bunch more tests on Windows to try harder to make sure I didn't break anything. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=8695

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -10 lines) Patch
M base/thread.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M base/thread_unittest.cc View 2 chunks +23 lines, -0 lines 0 comments Download
M webkit/default_plugin/plugin_impl.h View 1 2 3 4 1 chunk +2 lines, -1 line 2 comments Download
M webkit/default_plugin/plugin_impl.cc View 4 chunks +5 lines, -4 lines 2 comments Download
M webkit/default_plugin/plugin_install_job_monitor.h View 1 2 2 chunks +11 lines, -2 lines 2 comments Download
M webkit/default_plugin/plugin_install_job_monitor.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
John Grabowski
11 years, 11 months ago (2009-01-26 22:38:42 UTC) #1
agl
http://codereview.chromium.org/18824/diff/23/220 File webkit/default_plugin/plugin_impl.h (right): http://codereview.chromium.org/18824/diff/23/220#newcode353 Line 353: scoped_refptr<PluginInstallationJobMonitorThread> installation_job_monitor_thread_; Someone will probably complain about 80 ...
11 years, 11 months ago (2009-01-26 22:45:39 UTC) #2
John Grabowski
http://codereview.chromium.org/18824/diff/23/220 File webkit/default_plugin/plugin_impl.h (right): http://codereview.chromium.org/18824/diff/23/220#newcode353 Line 353: scoped_refptr<PluginInstallationJobMonitorThread> installation_job_monitor_thread_; On 2009/01/26 22:45:39, agl wrote: > ...
11 years, 11 months ago (2009-01-26 22:49:14 UTC) #3
jeremy
lgtm, A couple of style nits. http://codereview.chromium.org/18824/diff/225/228 File webkit/default_plugin/plugin_impl.cc (right): http://codereview.chromium.org/18824/diff/225/228#newcode42 Line 42: installation_job_monitor_thread_(new PluginInstallationJobMonitorThread()), ...
11 years, 11 months ago (2009-01-26 23:00:34 UTC) #4
John Grabowski
http://codereview.chromium.org/18824/diff/225/228 File webkit/default_plugin/plugin_impl.cc (right): http://codereview.chromium.org/18824/diff/225/228#newcode42 Line 42: installation_job_monitor_thread_(new PluginInstallationJobMonitorThread()), On 2009/01/26 23:00:34, jeremy wrote: > ...
11 years, 11 months ago (2009-01-27 00:31:25 UTC) #5
agl
11 years, 11 months ago (2009-01-27 00:42:09 UTC) #6
LGTM if you want to submit it tonight.

Powered by Google App Engine
This is Rietveld 408576698