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

Issue 10392188: Base: Fix a race settin the running_ flag. (Closed)

Created:
8 years, 7 months ago by rvargas (doing something else)
Modified:
8 years, 7 months ago
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org
Visibility:
Public.

Description

Base: Fix a race settin the running_ flag. BUG=127931 TEST=green bots TBR=jhawkins, willchan Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=138143

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M base/threading/thread.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
rvargas (doing something else)
8 years, 7 months ago (2012-05-21 21:31:37 UTC) #1
James Hawkins
LGTM, thanks.
8 years, 7 months ago (2012-05-21 21:33:43 UTC) #2
willchan no longer on Chromium
8 years, 7 months ago (2012-05-21 21:34:41 UTC) #3
lgtm

On Mon, May 21, 2012 at 2:31 PM, <rvargas@chromium.org> wrote:

> Reviewers: willchan, James Hawkins,
>
> Description:
> Base: Fix a race settin the running_ flag.
>
> BUG=127931
> TEST=green bots
> TBR=jhawkins, willchan
>
> Please review this at
https://chromiumcodereview.**appspot.com/10392188/<https://chromiumcodereview...
>
> SVN Base:
svn://svn.chromium.org/chrome/**trunk/src/<http://svn.chromium.org/chrome/trunk/src/>
>
> Affected files:
>  M     base/threading/thread.cc
>
>
> Index: base/threading/thread.cc
> ==============================**==============================**=======
> --- base/threading/thread.cc    (revision 138119)
> +++ base/threading/thread.cc    (working copy)
> @@ -161,11 +161,11 @@
>     // Let's do this before signaling we are started.
>     Init();
>
> +    running_ = true;
>     startup_data_->event.Signal();
>     // startup_data_ can't be touched anymore since the starting thread is
> now
>     // unlocked.
>
> -    running_ = true;
>     Run(message_loop_);
>     running_ = false;
>
>
>
>

Powered by Google App Engine
This is Rietveld 408576698