Re: [Jack-Devel] behavior of jack_port_register on activated client?

PrevNext  Index
DateTue, 15 Feb 2011 09:50:58 -0500
From Edward Amsden <[hidden] at cs dot rit dot edu>
To[hidden] at lists dot jackaudio dot org
In-Reply-Totorbenh Re: [Jack-Devel] behavior of jack_port_register on activated client?
Follow-UpPaul Davis Re: [Jack-Devel] behavior of jack_port_register on activated client?
On Tue, Feb 15, 2011 at 9:13 AM, torbenh <[hidden]> wrote:
> On Mon, Feb 14, 2011 at 07:31:27PM -0500, Edward Amsden wrote:
>> I am writing a binding for JACK to Haskell.
>>
>> As part of this process, it would be helpful to know the behavior of
>> jack_port_register. Will it block until a processing callback is not
>> running? Is there any sort of mutual exclusion between
>> jack_port_register and the processing callback? Or do I need to
>> provide this myself?
>
> you can not call that from a callback.
> on jack1 it will deadlock.
> and since its not an RT operation in any way, it can not be used in the
> process callback.
>
> you need to call it from another thread, and thats safe then.
OK. So then if I call it while a client is activated, when do I know
that I can start getting and reading from/writing to the port buffer
inside the processing callback?

>
>>
>> If there isn't, is it safe to call it inside a processing callback? If
>> so, can I use the port immediately, or should I wait for the next
>> cycle?
>>
>> Thanks!
>> --
>> Edward Amsden
>> Undergraduate
>> Computer Science
>> Rochester Institute of Technology
>> www.edwardamsden.com
>> 
>> Jack-Devel mailing list
>> [hidden]
>> http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
>
> --
> torben Hohn
> 
> Jack-Devel mailing list
> [hidden]
> http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
>



-- 
Edward Amsden
Undergraduate
Computer Science
Rochester Institute of Technology
www.edwardamsden.com
PrevNext  Index

1297781475.2659_0.ltw:2,a <AANLkTi=tRyh25ZK5-n+obRsNgdxX9A5cEupaZVn-RBB2 at mail dot gmail dot com>