[PATCH] thread-test: fix deadlock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux