ALSA: add locks to safely add/remove MIDI devices
authorRobin Gareus <robin@gareus.org>
Mon, 14 Jan 2019 21:07:51 +0000 (22:07 +0100)
committerRobin Gareus <robin@gareus.org>
Mon, 14 Jan 2019 21:33:31 +0000 (22:33 +0100)
commit8b71967be9c35213cb670d3057ffdd699fe23af3
tree0537b648d8fc3bc9f1ef58c90e3ba5ad18b61f28
parent8f9e63575fe527eb1cbeceda7565da189e00948b
ALSA: add locks to safely add/remove MIDI devices

Theoretically this could be lock-free by using a queue of device
ports to be added/remove in sync in the process-callback, but
realistically adding/removing devices doesn't have to be rt-safe.
libs/backends/alsa/alsa_audiobackend.cc
libs/backends/alsa/alsa_audiobackend.h