OSDN Git Service

Add snd_lib_error_set_local() to install a thread-local error handler.
authorJerome Forissier <jerome@taodyne.com>
Thu, 31 Jan 2013 14:47:23 +0000 (15:47 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 31 Jan 2013 15:28:14 +0000 (16:28 +0100)
commit44c1a623dd1fc9e831616b663bebc54ca98df994
tree55f5ea8bf3bf029990536454150f4dc6024ba13b
parent2cfc8b9b44a8e493c41b3d63d5a00b306a18a5ed
Add snd_lib_error_set_local() to install a thread-local error handler.

This is required so we can make other functions reentrant (such as
snd_device_name_hint()).
The default error handling function snd_lib_error_default() now checks
if a local handler exists, and if so, calls it. Otherwise, the previous
behavior is unchanged.

Signed-off-by: Jerome Forissier <jerome@taodyne.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
configure.in
include/error.h
src/error.c