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

Issue 276002: Add AtomicFlag class to base/...... (Closed)

Created:
11 years, 2 months ago by Timur Iskhodzhanov
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org
Visibility:
Public.

Description

Add AtomicFlag class to base/... This class is intended to replace wrong synchronization via boolean like those in the bugs listed below. TEST=./sconsbuild/Debug/base_unittests --gtest_filter="*AtomicFlag*" BUG=21468, 22520, 24419

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 16

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Total comments: 1

Patch Set 15 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -0 lines) Patch
A base/atomic_flag.h View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
A base/atomic_flag.cc View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A base/atomic_flag_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +79 lines, -0 lines 0 comments Download
M base/base.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Timur Iskhodzhanov
Hi Darin, Can you please review the AtomicFlag class we were talking about? Can you ...
11 years, 2 months ago (2009-10-13 19:13:25 UTC) #1
darin (slow to review)
http://codereview.chromium.org/276002/diff/4001/5003 File base/atomic_flag.cc (right): http://codereview.chromium.org/276002/diff/4001/5003#newcode1 Line 1: // Copyright (c) 2006-2009 The Chromium Authors. All ...
11 years, 2 months ago (2009-10-14 06:25:45 UTC) #2
Timur Iskhodzhanov
Thank you for your review. Is there any better way to disable a specific test ...
11 years, 2 months ago (2009-10-14 14:43:44 UTC) #3
darin (slow to review)
On Wed, Oct 14, 2009 at 7:43 AM, <timurrrr@chromium.org> wrote: > Thank you for your ...
11 years, 2 months ago (2009-10-14 16:27:24 UTC) #4
Timur Iskhodzhanov
On 2009/10/14 16:27:24, darin wrote: > On Wed, Oct 14, 2009 at 7:43 AM, <mailto:timurrrr@chromium.org> ...
11 years, 2 months ago (2009-10-14 18:10:22 UTC) #5
darin (slow to review)
On Wed, Oct 14, 2009 at 11:10 AM, <timurrrr@chromium.org> wrote: > On 2009/10/14 16:27:24, darin ...
11 years, 2 months ago (2009-10-14 18:20:37 UTC) #6
Timur Iskhodzhanov
> > * NDEBUG and DCHECK are _both_ not defined on Windows bot... > > ...
11 years, 2 months ago (2009-10-14 19:17:40 UTC) #7
Timur Iskhodzhanov
Forgot to mention 39 bool return_true() { 40 LOG(INFO) << "return_true was called"; 41 return ...
11 years, 2 months ago (2009-10-14 19:20:55 UTC) #8
darin (slow to review)
logging on windows does not go to stdout. it goes to a log file.-darin On ...
11 years, 2 months ago (2009-10-14 19:31:56 UTC) #9
darin (slow to review)
at least, that is the case for LOG(INFO). try LOG(ERROR). On Wed, Oct 14, 2009 ...
11 years, 2 months ago (2009-10-14 19:32:42 UTC) #10
Timur Iskhodzhanov
I've created a separate try-CL http://codereview.chromium.org/277007 Seems like the issue is connected with threadsafe-Death_tests. I'll ...
11 years, 2 months ago (2009-10-14 20:36:08 UTC) #11
Timur Iskhodzhanov
I've updated the changelist. I've decided to disable the death test on windows due to ...
11 years, 2 months ago (2009-10-15 11:48:23 UTC) #12
darin (slow to review)
11 years, 2 months ago (2009-10-15 18:05:54 UTC) #13
LGTM w/ one nit:

http://codereview.chromium.org/276002/diff/12/1022
File base/atomic_flag_unittest.cc (right):

http://codereview.chromium.org/276002/diff/12/1022#newcode48
Line 48: #if GTEST_OS_WINDOWS
please use #if defined(OS_WIN) instead

Powered by Google App Engine
This is Rietveld 408576698