[alsa-devel] snd_mixer handle in two threads
vand2 at gmx.de
Wed Jun 9 18:59:11 CEST 2010
Am 09.06.2010 15:05, schrieb Sebastian H.:
> Hello again
> This is still about the alsamixer-qt4 application I working on.
> This time I wonder if a snd_mixer_t handle created with
> snd_mixer_open ( ... ) can be used in two threads concurrently.
> One thread should be the main Qt4 GUI thread and the second thread
> should only poll ( ... ) blocking for ALSA events on the shared
> snd_mixer_t handle in accompany with
> snd_mixer_poll_descriptors_count ( ... )
> snd_mixer_poll_descriptors ( ... )
> snd_mixer_poll_descriptors_revents ( ... )
> The second thread then will post Qt4 signals to the main thread
> on occassion.
Nevermind, QSocketNotifier solved the issue in a better way.
More information about the Alsa-devel