From: Lennart Poettering Date: Thu, 9 Aug 2007 21:17:32 +0000 (+0000) Subject: protect memimpors with a recursive mutex to avoid deadlock when shutting down X-Git-Tag: 1.0_branch~2762^2~1^2~364 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f155748da35e97ea00bea85b2b0e2defa7bf931;p=profile%2Fivi%2Fpulseaudio.git protect memimpors with a recursive mutex to avoid deadlock when shutting down git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1604 fefdeb5f-60dc-0310-8127-8f9354f1896f --- diff --git a/src/pulsecore/memblock.c b/src/pulsecore/memblock.c index f3e400e..f0e2b4c 100644 --- a/src/pulsecore/memblock.c +++ b/src/pulsecore/memblock.c @@ -743,7 +743,7 @@ pa_memimport* pa_memimport_new(pa_mempool *p, pa_memimport_release_cb_t cb, void pa_assert(cb); i = pa_xnew(pa_memimport, 1); - i->mutex = pa_mutex_new(0); + i->mutex = pa_mutex_new(1); i->pool = p; i->segments = pa_hashmap_new(NULL, NULL); i->blocks = pa_hashmap_new(NULL, NULL);