DescriptionWeb MIDI: introduce MidiManager::Shutdown to shutdown gracefully
Platform dependent MidiManager implementations allocate extra threads
lazily on the IO thread, but it does not have a chance to stop them
correctly on the same IO thread, and stop it on the main thread.
This patch introduces Shutdown() method to be called before the IO
thread stopped so that the MidiManager implementations can stop the
extra threads gracefully on the right thread.
Platform specific fixes follow this change.
BUG=374341
Committed: https://crrev.com/29aaa95a4444e6d4ce9bb789cc7996821f044e52
Cr-Commit-Position: refs/heads/master@{#352564}
Patch Set 1 #Patch Set 2 : s/io/IO/g on comments #Patch Set 3 : rebase #
Total comments: 5
Patch Set 4 : review #3 #Patch Set 5 : fix content_unittests #Patch Set 6 : make sure to run Finalize() #
Total comments: 2
Patch Set 7 : Fix a race on session_thread_runner_ #Patch Set 8 : more checks in unit tests #
Total comments: 6
Patch Set 9 : review #15 #Patch Set 10 : warning fix #Patch Set 11 : Detached() #Patch Set 12 : build fix (mac typo) #
Total comments: 5
Patch Set 13 : rename to Detach #
Messages
Total messages: 28 (4 generated)
|