Re: [Jack-Devel] Graph callback and client state

PrevNext  Index
DateTue, 09 Apr 2013 15:51:23 -0400
From Paul Davis <[hidden] at linuxaudiosystems dot com>
ToHarry van Haaren <[hidden] at gmail dot com>
Ccjack-devel <[hidden] at lists dot jackaudio dot org>
In-Reply-ToHarry van Haaren Re: [Jack-Devel] Graph callback and client state
Follow-UpStéphane Letz Re: [Jack-Devel] Graph callback and client state
Follow-UpHarry van Haaren Re: [Jack-Devel] Graph callback and client state
Follow-UpPeter Nelson Re: [Jack-Devel] Graph callback and client state
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.
PrevNext  Index

1365537091.13391_0.ltw:2,a <CAFa_cKnbfYNSR-kkSxYzTRDOPv5k+ZEQ0+MBHkCXM7FcA6HODw at mail dot gmail dot com>