[alsa-devel] Should snd_pcm_drop() interrupt snd_pcm_writei() call?

Marek Peca marek at duch.cz
Fri May 15 15:57:49 CEST 2009


> I would like to know, how should snd_pcm_drop() call influence 
> snd_pcm_writei() being simultaneously executed.
>
> I expected, that after issuing snd_pcm_drop() (from another thread), the 
> snd_pcm_write*() in progress should be terminated almost immediately with 
> some return value (error or short write).
> (..)


Today, Jara Kysela told me, that calling pcm functions from multiple 
threads is not recommended practice.

This explains the problems I encountered. I missed the information, that 
these functions are not meant to be thread-safe.


Best regards,
Marek.


More information about the Alsa-devel mailing list