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

PrevNext  Index
DateTue, 15 Feb 2011 15:13:34 +0100
From torbenh <[hidden] at gmx dot de>
To[hidden] at lists dot jackaudio dot org
In-Reply-ToEdward Amsden [Jack-Devel] behavior of jack_port_register on activated client?
Follow-UpEdward Amsden Re: [Jack-Devel] behavior of jack_port_register on activated client?
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.

> 
> 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
PrevNext  Index

1297779232.30511_0.ltw:2,a <20110215141334.GH3055 at siel dot b>