pcm: Do not access lock_enabled if thread safe API
PATCH 1/1 pcm: Do not access lock_enabled if thread safe API
From: Timo Wischer <[email protected]>
is not enabled.
Without this commit compiling fails when THREAD_SAFE_API is not enabled
Signed-off-by Timo Wischer <[email protected]>
src/pcm/pcm.c +3 -0
@@ -823,8 +823,11 @@ int snd_pcm_async(snd_pcm_t *pcm, int sig, pid_t pid) sig =SIGIO ;if (pid ==0 ) pid =getpid (); + +#ifdef THREAD_SAFE_API /* async handler may lead to a deadlock; suppose no multi thread */ pcm->lock_enabled =0 ; +#endif return pcm->ops->async(pcm->op_arg, sig, pid); }#endif
Signature · 1 line
2.7.4
Quoted 4 lines · On Thu, 01 Mar 2018 17:34:44 +0100, <[email protected]> wrote:
From: Timo Wischer <[email protected]>
is not enabled.
Looks like a garbled text here. I removed it.
Quoted 3 lines
Without this commit compiling fails when
THREAD_SAFE_APIis not enabledSigned-off-by Timo Wischer <[email protected]>
Applied with the correction of texts. Thanks!
Takashi