Re: [Jack-Devel] Graph callback and client state
Le 9 avr. 2013 à 21:51, Paul Davis <[hidden]> a écrit :
>
>
> On Tue, Apr 9, 2013 at 3:33 PM, Harry van Haaren <[hidden]> wrote:
> On Tue, Apr 9, 2013 at 7:45 PM, Stéphane Letz <[hidden]> wrote:
> > You can never be sure that ports returned by jack_get_ports are always valid
>
> Any chance that adding a flag, "JackPortIsActive" to JackPortFlags allows the functionality to be implemented?
> On activation, the JACK server marks all of the client owned ports as "active".
> Patchbay managers etc call jack_port_flags() and can query if its an "active" port or not?
>
> there is always a race ... sometime between when you get the ports and when you use the information, ports could be added, removed or become inactive.
This is more or less my point : "ports could be added, removed or become inactive." Inactive state is not so specific
so why bother to treat this case only? This racy API cannot be corrected.
Stéphane
1365538615.15122_0.ltw:2,a <AC37E91F-337B-4D8B-9FBA-3694C239C1BC at grame dot fr>