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

Issue 4288: Make the SystemMonitor observer list thread safe.... (Closed)

Created:
12 years, 3 months ago by Mike Belshe
Modified:
9 years, 5 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Make the SystemMonitor observer list thread safe. This is done by using the new observer_list_threadsafe. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=4452

Patch Set 1 #

Patch Set 2 : '' #

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 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -64 lines) Patch
M base/observer_list_threadsafe.h View 8 9 10 11 1 chunk +6 lines, -2 lines 0 comments Download
M base/system_monitor.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +43 lines, -39 lines 0 comments Download
M base/system_monitor.cc View 6 7 8 9 10 11 3 chunks +46 lines, -4 lines 0 comments Download
M base/system_monitor_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +16 lines, -14 lines 0 comments Download
M base/system_monitor_win.cc View 6 8 9 10 11 2 chunks +4 lines, -4 lines 0 comments Download
M base/time_win.cc View 8 9 10 11 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Mike Belshe
Don't review this yet. Reworking it.
12 years, 2 months ago (2008-09-26 15:52:58 UTC) #1
Mike Belshe
12 years, 2 months ago (2008-09-26 16:58:58 UTC) #2
Mike Belshe
The SystemMonitor will be thread safe and maintain some restrictions on how notifications occur. * ...
12 years, 2 months ago (2008-09-26 17:02:13 UTC) #3
Mike Belshe
Based on feedback from Darin; added a check in case the caller does attempt to ...
12 years, 2 months ago (2008-09-26 19:53:21 UTC) #4
darin (slow to review)
LGTM http://codereview.chromium.org/4288/diff/17/412 File base/system_monitor.h (right): http://codereview.chromium.org/4288/diff/17/412#newcode35 Line 35: PowerStateEvent, // The Power status of the ...
12 years, 2 months ago (2008-09-30 17:31:01 UTC) #5
Dean McNamee
Can you move all of the code in the header into a .cc? It will ...
12 years, 2 months ago (2008-09-30 20:02:19 UTC) #6
Mike Belshe
On 2008/09/30 20:02:19, Dean McNamee wrote: > Can you move all of the code in ...
12 years, 2 months ago (2008-09-30 20:14:35 UTC) #7
Mike Belshe
After the first review, I went back and redid ObserverListThreadSafe. Here is an updated version ...
12 years, 1 month ago (2008-10-31 20:54:24 UTC) #8
darin (slow to review)
LGTM http://codereview.chromium.org/4288/diff/1808/1618 File base/observer_list_threadsafe.h (right): http://codereview.chromium.org/4288/diff/1808/1618#newcode90 Line 90: DCHECK(list) << "RemoveObserver called on for unknown ...
12 years, 1 month ago (2008-10-31 22:36:51 UTC) #9
Dean McNamee
I don't see where Start() is called, is it? I'm guessing it's going to be ...
12 years, 1 month ago (2008-11-01 09:53:02 UTC) #10
Mike Belshe
On 2008/10/31 22:36:51, darin wrote: > LGTM > > http://codereview.chromium.org/4288/diff/1808/1618 > File base/observer_list_threadsafe.h (right): > ...
12 years, 1 month ago (2008-11-02 00:22:45 UTC) #11
Mike Belshe
12 years, 1 month ago (2008-11-02 00:23:30 UTC) #12
On 2008/11/01 09:53:02, Dean McNamee wrote:
> I don't see where Start() is called, is it?  I'm guessing it's going to be
> called somewhere else so that we guarantee where on a thread with a message
loop
> etc?  Where will it be called?

Sorry - as mentioned there is another CL coming.  Integration into the browser
isn't fully done.  Expect it on monday.

> 
> http://codereview.chromium.org/4288/diff/1808/1615
> File base/system_monitor.cc (right):
> 
> http://codereview.chromium.org/4288/diff/1808/1615#newcode13
> Line 13: static int kDelayedBatteryCheck = 10*1000;
> spaces around *, put the units in the name like CheckMs.

ok

Powered by Google App Engine
This is Rietveld 408576698