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

Issue 9605015: Add a SharedMemSynchronizer class. (Closed)

Created:
8 years, 9 months ago by tommi (sloooow) - chröme
Modified:
8 years, 8 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Add a CrossProcessNotification class. This class will be used to synchronize multiple audio objects with minimal thread and IPC socket usage. TEST=Several tests included. Run media unittests. BUG=114699 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=129263 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=129405

Patch Set 1 #

Total comments: 58

Patch Set 2 : Address review comments. I'll do the file name change later so that you can see the diffs clearer. #

Total comments: 24

Patch Set 3 : Address review comments #

Patch Set 4 : Address review comments #

Patch Set 5 : Change file names #

Patch Set 6 : address review comments from Ami #

Total comments: 20

Patch Set 7 : Changed class and file names according to Ami's wishes. #

Total comments: 10

Patch Set 8 : Address review comments #

Total comments: 2

Patch Set 9 : Address comments #

Patch Set 10 : Disabled two tests before relanding #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1049 lines, -0 lines) Patch
A media/audio/cross_process_notification.h View 1 2 3 4 5 6 7 8 1 chunk +172 lines, -0 lines 0 comments Download
A media/audio/cross_process_notification.cc View 1 2 3 4 5 6 7 1 chunk +30 lines, -0 lines 0 comments Download
A media/audio/cross_process_notification_posix.cc View 1 2 3 4 5 6 1 chunk +114 lines, -0 lines 0 comments Download
A media/audio/cross_process_notification_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +460 lines, -0 lines 0 comments Download
A media/audio/cross_process_notification_win.cc View 1 2 3 4 5 6 7 8 1 chunk +268 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
tommi (sloooow) - chröme
8 years, 9 months ago (2012-03-06 15:58:56 UTC) #1
scherkus (not reviewing)
nice! for this class we should follow base's convention for multi-OS impls: media/audio/shared_mem_synchronizer.h media/audio/shared_mem_synchronizer.cc media/audio/shared_mem_synchronizer_posix.cc ...
8 years, 9 months ago (2012-03-08 02:37:08 UTC) #2
tommi (sloooow) - chröme
https://chromiumcodereview.appspot.com/9605015/diff/1/media/audio/shared_mem_synchronizer.cc File media/audio/shared_mem_synchronizer.cc (right): https://chromiumcodereview.appspot.com/9605015/diff/1/media/audio/shared_mem_synchronizer.cc#newcode4 media/audio/shared_mem_synchronizer.cc:4: #include "media/audio/shared_mem_synchronizer.h" On 2012/03/08 02:37:08, scherkus wrote: > blank ...
8 years, 9 months ago (2012-03-08 16:10:57 UTC) #3
Ami GONE FROM CHROMIUM
drive-by minor coding comments below, but a bigger philosophical point here. The new interface & ...
8 years, 9 months ago (2012-03-08 17:04:36 UTC) #4
scherkus (not reviewing)
On 2012/03/08 17:04:36, Ami Fischman wrote: > drive-by minor coding comments below, but a bigger ...
8 years, 9 months ago (2012-03-08 19:04:30 UTC) #5
tommi (sloooow) - chröme
On 2012/03/08 17:04:36, Ami Fischman wrote: > The new interface & impl don't have anything ...
8 years, 9 months ago (2012-03-09 11:48:27 UTC) #6
tommi (sloooow) - chröme
On 2012/03/08 19:04:30, scherkus wrote: > I agree the name should be something more WaitableEvent-ish ...
8 years, 9 months ago (2012-03-09 12:14:42 UTC) #7
tommi (sloooow) - chröme
https://chromiumcodereview.appspot.com/9605015/diff/6003/media/audio/shared_mem_synchronizer.cc File media/audio/shared_mem_synchronizer.cc (right): https://chromiumcodereview.appspot.com/9605015/diff/6003/media/audio/shared_mem_synchronizer.cc#newcode27 media/audio/shared_mem_synchronizer.cc:27: last_ = (ret >= 0) ? static_cast<size_t>(ret) : count_ ...
8 years, 9 months ago (2012-03-09 12:15:49 UTC) #8
Ami GONE FROM CHROMIUM
I think this is a MultiProcessNotification, FWIW. IIUC the use-case is having a socket be ...
8 years, 9 months ago (2012-03-09 16:36:47 UTC) #9
tommi (sloooow) - chröme
https://chromiumcodereview.appspot.com/9605015/diff/6003/media/audio/shared_mem_synchronizer.cc File media/audio/shared_mem_synchronizer.cc (right): https://chromiumcodereview.appspot.com/9605015/diff/6003/media/audio/shared_mem_synchronizer.cc#newcode27 media/audio/shared_mem_synchronizer.cc:27: last_ = (ret >= 0) ? static_cast<size_t>(ret) : count_ ...
8 years, 9 months ago (2012-03-13 12:26:13 UTC) #10
tommi (sloooow) - chröme
On 2012/03/09 16:36:47, Ami Fischman wrote: > I think this is a MultiProcessNotification, FWIW. > ...
8 years, 9 months ago (2012-03-13 12:29:37 UTC) #11
Ami GONE FROM CHROMIUM
re: "MultiProcessNotification" w/ limit to 2 processes/threads: How about CrossProcessNotification ? https://chromiumcodereview.appspot.com/9605015/diff/28002/media/audio/shared_mem_synchronizer.cc File media/audio/shared_mem_synchronizer.cc (right): ...
8 years, 9 months ago (2012-03-13 20:08:02 UTC) #12
tommi (sloooow) - chröme
Comments addressed. CrossProcessNotification sounds good so I'm doing that change now and will upload a ...
8 years, 9 months ago (2012-03-14 13:32:43 UTC) #13
tommi (sloooow) - chröme
Updated the description but the subject is still the same.
8 years, 9 months ago (2012-03-14 14:30:40 UTC) #14
Ami GONE FROM CHROMIUM
LGTM++ https://chromiumcodereview.appspot.com/9605015/diff/33003/media/audio/cross_process_notification.cc File media/audio/cross_process_notification.cc (right): https://chromiumcodereview.appspot.com/9605015/diff/33003/media/audio/cross_process_notification.cc#newcode13 media/audio/cross_process_notification.cc:13: const Notifications* notifications) FWIW the initializer-list & ctor ...
8 years, 9 months ago (2012-03-14 16:40:51 UTC) #15
tommi (sloooow) - chröme
All done. Andrew - care to take a look at the windows specific code? https://chromiumcodereview.appspot.com/9605015/diff/33003/media/audio/cross_process_notification.cc ...
8 years, 9 months ago (2012-03-14 21:20:38 UTC) #16
scherkus (not reviewing)
LGTM w/ nits I'm terribly sorry for not getting to this earlier! https://chromiumcodereview.appspot.com/9605015/diff/37003/media/audio/cross_process_notification.h File media/audio/cross_process_notification.h ...
8 years, 9 months ago (2012-03-27 14:38:14 UTC) #17
tommi (sloooow) - chröme
Thanks Andrew - all done. :) On Tue, Mar 27, 2012 at 4:38 PM, <scherkus@chromium.org> ...
8 years, 8 months ago (2012-03-27 19:24:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommi@chromium.org/9605015/43002
8 years, 8 months ago (2012-03-27 19:26:21 UTC) #19
commit-bot: I haz the power
8 years, 8 months ago (2012-03-27 20:29:36 UTC) #20
Try job failure for 9605015-43002 (retry) on win for step "compile" (clobber
build).
It's a second try, previously, step "compile" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number...

Powered by Google App Engine
This is Rietveld 408576698