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

Issue 392273002: Create DispatchSourceMach to run a MACH_RECV dispatch source. (Closed)

Created:
6 years, 5 months ago by Robert Sesek
Modified:
6 years, 5 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Create DispatchSourceMach to run a MACH_RECV dispatch source. This implements RAII semantics so that when the destructor runs, the source is cancelled and event handler blocks cannot call methods on a destructed object. BUG=382931 R=mark@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283664

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add a test #

Patch Set 3 : I despise the shared_library build with a deep, deep passion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -33 lines) Patch
M sandbox/mac/BUILD.gn View 1 2 chunks +3 lines, -0 lines 0 comments Download
A sandbox/mac/dispatch_source_mach.h View 1 2 1 chunk +61 lines, -0 lines 0 comments Download
A sandbox/mac/dispatch_source_mach.cc View 1 chunk +62 lines, -0 lines 0 comments Download
A sandbox/mac/dispatch_source_mach_unittest.cc View 1 1 chunk +119 lines, -0 lines 0 comments Download
M sandbox/mac/mach_message_server.h View 3 chunks +6 lines, -11 lines 0 comments Download
M sandbox/mac/mach_message_server.cc View 4 chunks +4 lines, -22 lines 0 comments Download
M sandbox/mac/sandbox_mac.gypi View 1 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Robert Sesek
6 years, 5 months ago (2014-07-16 14:44:27 UTC) #1
Mark Mentovai
LGTM https://codereview.chromium.org/392273002/diff/1/sandbox/mac/dispatch_source_mach.h File sandbox/mac/dispatch_source_mach.h (right): https://codereview.chromium.org/392273002/diff/1/sandbox/mac/dispatch_source_mach.h#newcode15 sandbox/mac/dispatch_source_mach.h:15: // destructed, the source will be cancelled and ...
6 years, 5 months ago (2014-07-16 15:45:39 UTC) #2
Robert Sesek
I also added a test, because that seemed like the right thing to do. https://codereview.chromium.org/392273002/diff/1/sandbox/mac/dispatch_source_mach.h ...
6 years, 5 months ago (2014-07-16 19:18:17 UTC) #3
Mark Mentovai
LGTM
6 years, 5 months ago (2014-07-16 20:36:15 UTC) #4
Robert Sesek
The CQ bit was checked by rsesek@chromium.org
6 years, 5 months ago (2014-07-16 20:36:28 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsesek@chromium.org/392273002/40001
6 years, 5 months ago (2014-07-16 20:42:40 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_compile_dbg on tryserver.chromium ...
6 years, 5 months ago (2014-07-17 01:04:11 UTC) #7
Robert Sesek
The CQ bit was checked by rsesek@chromium.org
6 years, 5 months ago (2014-07-17 02:12:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsesek@chromium.org/392273002/60001
6 years, 5 months ago (2014-07-17 02:16:53 UTC) #9
commit-bot: I haz the power
6 years, 5 months ago (2014-07-17 06:36:58 UTC) #10
Message was sent while issue was closed.
Change committed as 283664

Powered by Google App Engine
This is Rietveld 408576698