Re: [pulseaudio-discuss] [PATCH] thread-test: fix deadlock

2017-01-25 Thread Tanu Kaskinen
On Mon, 2017-01-23 at 13:59 +0500, Alexander E. Patrakov wrote: > 2017-01-23 13:38 GMT+05:00 Tanu Kaskinen : > > 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 re

Re: [pulseaudio-discuss] [PATCH] thread-test: fix deadlock

2017-01-23 Thread Alexander E. Patrakov
2017-01-23 13:38 GMT+05:00 Tanu Kaskinen : > 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

[pulseaudio-discuss] [PATCH] thread-test: fix deadlock

2017-01-23 Thread Tanu Kaskinen
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