[Jackaudio] Processing callback thread safety guarantees

Danny Wensley danny+jack-mailing at wensley.eu
Sat Apr 11 20:31:11 CEST 2020


Hi all,

I'm in the process of building a small application that utilises Jack in
order to interface with audio hardware. Specifically, although this detail
is only partially relevant, I'm writing it in Rust (using some community
FFI bindings).

I was wondering what the thread safety guarantees of calling the processing
callback are. Specifically, I was wondering if it can be guaranteed that
the callback will only be called on a single thread at any given time?

This is primarily because it determines whether or not it is required for
the callback to be marked as "Sync" in Rust - which would indicate that the
callback's data must be thread safe, a restriction I'd prefer to avoid.

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.linuxaudio.org/archives/jackaudio/attachments/20200411/2cbe6530/attachment.html>


More information about the JackAudio mailing list