[pulseaudio-discuss] [PATCH] thread-test: fix deadlock
Tanu Kaskinen
tanuk at iki.fi
Thu Jan 26 06:07:15 UTC 2017
On Mon, 2017-01-23 at 13:59 +0500, Alexander E. Patrakov wrote:
> 2017-01-23 13:38 GMT+05:00 Tanu Kaskinen <tanuk at iki.fi>:
> > If we set magic_number to zero, the code will deadlock, because the
> > thread that is waiting for us to set magic_number to non-zero will
> > never progress.
> >
> > The problem was reported here:
> > https://lists.freedesktop.org/archives/pulseaudio-discuss/2017-January/027368.html
> > ---
> > src/tests/thread-test.c | 5 ++++-
> > 1 file changed, 4 insertions(+), 1 deletion(-)
>
> I have looked at the fix and believe that it's correct.
Thanks! Pushed.
--
Tanu
https://www.patreon.com/tanuk
More information about the pulseaudio-discuss
mailing list