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

Issue 2170463003: Web MIDI: Add CHECK()s to ensure MidiManager owned threads are terminated (Closed)

Created:
4 years, 5 months ago by Takashi Toyoshima
Modified:
4 years, 5 months ago
Reviewers:
yhirano, Adam Goode
CC:
chromium-reviews, feature-media-reviews_chromium.org, toyoshim+midi_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Web MIDI: Add CHECK()s to ensure MidiManager owned threads are terminated All MidiManager owned threads are stopped and joined before MidiManager is destructed. But let me add CHECK()s so that it aborts when these threads are still running, just in case. BUG=629954 Committed: https://crrev.com/8fb95e706d70e82d0f9c41fba01b7919d16b8ab3 Cr-Commit-Position: refs/heads/master@{#407424}

Patch Set 1 #

Total comments: 6

Patch Set 2 : review #11 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -8 lines) Patch
M media/midi/midi_manager.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M media/midi/midi_manager_alsa.cc View 1 1 chunk +10 lines, -7 lines 0 comments Download

Messages

Total messages: 22 (11 generated)
Takashi Toyoshima
4 years, 5 months ago (2016-07-21 09:42:12 UTC) #5
Takashi Toyoshima
PTAL.
4 years, 5 months ago (2016-07-21 11:04:32 UTC) #8
yhirano
lgtm
4 years, 5 months ago (2016-07-21 11:09:03 UTC) #10
Adam Goode
https://codereview.chromium.org/2170463003/diff/1/media/midi/midi_manager.cc File media/midi/midi_manager.cc (right): https://codereview.chromium.org/2170463003/diff/1/media/midi/midi_manager.cc#newcode63 media/midi/midi_manager.cc:63: CHECK(finalized_); Do you need to take lock_ here? https://codereview.chromium.org/2170463003/diff/1/media/midi/midi_manager_alsa.cc ...
4 years, 5 months ago (2016-07-21 15:40:30 UTC) #11
Takashi Toyoshima
https://codereview.chromium.org/2170463003/diff/1/media/midi/midi_manager.cc File media/midi/midi_manager.cc (right): https://codereview.chromium.org/2170463003/diff/1/media/midi/midi_manager.cc#newcode63 media/midi/midi_manager.cc:63: CHECK(finalized_); Good point. I'll fix this. https://codereview.chromium.org/2170463003/diff/1/media/midi/midi_manager_alsa.cc File media/midi/midi_manager_alsa.cc ...
4 years, 5 months ago (2016-07-21 18:25:24 UTC) #12
Takashi Toyoshima
4 years, 5 months ago (2016-07-21 18:25:27 UTC) #13
Adam Goode
lgtm
4 years, 5 months ago (2016-07-21 18:26:46 UTC) #14
Takashi Toyoshima
https://codereview.chromium.org/2170463003/diff/1/media/midi/midi_manager_alsa.cc File media/midi/midi_manager_alsa.cc (right): https://codereview.chromium.org/2170463003/diff/1/media/midi/midi_manager_alsa.cc#newcode161 media/midi/midi_manager_alsa.cc:161: // Extra DCHECK to verify all members are already ...
4 years, 5 months ago (2016-07-25 05:38:00 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2170463003/20001
4 years, 5 months ago (2016-07-25 05:38:15 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-25 07:42:55 UTC) #20
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 07:44:24 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8fb95e706d70e82d0f9c41fba01b7919d16b8ab3
Cr-Commit-Position: refs/heads/master@{#407424}

Powered by Google App Engine
This is Rietveld 408576698