[alsa-devel] [PATCH 0/3] Make snd_device_name_hint() reentrant

Jerome Forissier jerome at taodyne.com
Thu Jan 31 15:47:22 CET 2013


The following 3 patches ensure that snd_device_name_hint() does not mdify
any global variable. They fix spurious error messages that may occur when
the function is called from multiple threads simultaneously.

Jerome Forissier (3):
  Add snd_lib_error_set_local() to install a thread-local error handler.
  snd_device_name_hint(): do not change the global error handler.
  snd_device_name_hint(): do not use global snd_config.

 configure.in           | 10 ++++++++
 include/error.h        |  6 +++++
 src/control/namehint.c | 67 ++++++++++++++++++++++++++++----------------------
 src/error.c            | 24 +++++++++++++++++-
 4 files changed, 76 insertions(+), 31 deletions(-)

-- 
1.8.1.2



More information about the Alsa-devel mailing list