]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: Add LIBASOUND_THREAD_SAFE env variable check
authorTakashi Iwai <tiwai@suse.de>
Thu, 7 Jul 2016 13:21:14 +0000 (15:21 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 11 Jul 2016 13:25:30 +0000 (15:25 +0200)
commitc4b690278eeaf9a6805f67f6709e4aa33e58773a
tree847eca22a7a961cec210ee96b896087cf093244f
parent7a8a1d155267fb6e21ddaa0787d121ec47a15bf2
pcm: Add LIBASOUND_THREAD_SAFE env variable check

For making the debugging with any deadlocks by the newly introduced
thread-safety feature, add a check with LIBASOUND_THREAD_SAFE
environment variable.  When this variable is set to "0", alsa-lib PCM
forcibly disables the whole thread-safe pthread mutex calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm.c
src/pcm/pcm_local.h