[alsa-devel] Races in alsa-lib with threads

Clemens Ladisch clemens at ladisch.de
Tue Nov 13 21:23:36 CET 2012


Trent Piepho wrote:
> Consider snd_pcm_writei(), most of the time is usually spent blocked
> waiting for a period to elapse.  It is perfectly ok to call
> snd_pcm_delay() during this time.  But if one isn't allowed to make
> any other pcm calls during snd_pcm_writei() then this can't be done.

Then use non-blocking mode.  Blocking mode is suitable only for
applications that do not want to access the device while waiting.


Regards,
Clemens


More information about the Alsa-devel mailing list