Chromium Code Reviews
Help | Chromium Project | Sign in
(25)

Issue 2868114: Rework FileWatcher to avoid race condition upon deletion. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
4 years, 9 months ago by Mattias Nissler
Modified:
4 years ago
Reviewers:
tony
CC:
chromium-reviews, Paweł Hajdan Jr., ben+cc_chromium.org, John Grabowski, pam+watch_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Rework FileWatcher to avoid race condition upon deletion. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=55713

Patch Set 1 #

Total comments: 6

Patch Set 2 : Adjust mac and windows implementations. #

Total comments: 2

Patch Set 3 : Initialize FileWatcher on the file thread, address feedback. #

Patch Set 4 : Add missing return... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -171 lines) Patch
M chrome/browser/file_watcher.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/file_watcher_inotify.cc View 1 2 3 chunks +3 lines, -20 lines 0 comments Download
M chrome/browser/file_watcher_mac.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/file_watcher_unittest.cc View 1 2 7 chunks +69 lines, -86 lines 0 comments Download
M chrome/browser/file_watcher_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/user_style_sheet_watcher.h View 1 2 2 chunks +9 lines, -21 lines 0 comments Download
M chrome/browser/user_style_sheet_watcher.cc View 1 2 3 2 chunks +104 lines, -41 lines 0 comments Download
Commit: CQ not working?

Messages

Total messages: 8 (0 generated)
Mattias Nissler
This is work in progress and not yet meant for review. I'm off for the ...
4 years, 9 months ago (2010-08-06 14:04:38 UTC) #1
tony
http://codereview.chromium.org/2868114/diff/1/2 File chrome/browser/file_watcher.h (right): http://codereview.chromium.org/2868114/diff/1/2#newcode30 chrome/browser/file_watcher.h:30: // reference, since that would create a reference cycle. ...
4 years, 9 months ago (2010-08-06 20:55:02 UTC) #2
Mattias Nissler
http://codereview.chromium.org/2868114/diff/1/2 File chrome/browser/file_watcher.h (right): http://codereview.chromium.org/2868114/diff/1/2#newcode30 chrome/browser/file_watcher.h:30: // reference, since that would create a reference cycle. ...
4 years, 9 months ago (2010-08-09 09:29:47 UTC) #3
tony
I'm convinced this will work. Let me know when the change is ready for a ...
4 years, 9 months ago (2010-08-09 17:17:21 UTC) #4
Mattias Nissler
I've uploaded an updated version that also adjusts the mac and windows versions of FileWatcherImpl. ...
4 years, 9 months ago (2010-08-09 18:31:27 UTC) #5
tony
In general, looks good. If the test you added is consistent on Linux, maybe you ...
4 years, 9 months ago (2010-08-09 18:57:46 UTC) #6
Mattias Nissler
Note I've readded the test and put a comment that indicates it doesn't actually test ...
4 years, 9 months ago (2010-08-10 11:09:50 UTC) #7
tony
4 years, 9 months ago (2010-08-10 17:14:35 UTC) #8
LGTM, thanks a lot for doing this!
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld ec887be