snd_mixer handle in two threads

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

 



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.

Does this sound feasible?

This approach seems neccessary as I want to avoid timed polls and any
integration of linux poll() in the Qt4 mail loop seems to boil down to
timed polls.


Regards,
Sebastian H.
_______________________________________________
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