mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
use RCU to manage JACK backend's container of ports
This commit is contained in:
parent
feff57d29a
commit
70f13a3ff3
3 changed files with 44 additions and 11 deletions
|
|
@ -302,8 +302,8 @@ class JACKAudioBackend : public AudioBackend {
|
|||
static void _registration_callback (jack_port_id_t, int, void *);
|
||||
static void _connect_callback (jack_port_id_t, jack_port_id_t, int, void *);
|
||||
|
||||
typedef std::map<void*,boost::shared_ptr<JackPort> > JackPorts;
|
||||
mutable JackPorts _jack_ports; /* can be modified in ::get_port_by_name () */
|
||||
typedef std::map<void*,boost::shared_ptr<JackPort> > JackPorts;
|
||||
mutable SerializedRCUManager<JackPorts> _jack_ports; /* can be modified in ::get_port_by_name () */
|
||||
|
||||
void connect_callback (jack_port_id_t, jack_port_id_t, int);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue