[alsa-devel] parallel, real time safe waiting?

Clemens Ladisch clemens at ladisch.de
Tue Apr 14 14:35:36 CEST 2015


Johannes Lorenz wrote:
>   1.) Let each thread open a handle using snd_seq_open()
>   2.) Call snd_pcm_wait() in each thread

> Are these functions
>
>   a) real time safe?

snd_seq_open() is not, but why would that matter?
Don't you call it from the GUI thread?

>   b) race-condition free, assuming I'll use pairwise different handles each thread

Yes.


Regards,
Clemens


More information about the Alsa-devel mailing list