interrupting snd_pcm_writei or snd_pcm_drain?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've noticed that it is unsafe to call snd_pcm_writei or snd_pcm_drain in 
a pthread with its cancelation type set to asynchronous. 
snd_pcm_dmix_sync_area can lower a semaphore, and, if the thread is 
canceled while the semaphore is down, then a subsequent call to the sound 
device (calling snd_pcm_close, for instance) will also lower the semaphore 
and cause deadlock.  Is this a known issue, and is there a way around it 
other than to always use deferred cancelation when calling these 
functions?

Thanks,
-Mike G-
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux