]> code.delx.au - pulseaudio/commitdiff
protect memimpors with a recursive mutex to avoid deadlock when shutting down
authorLennart Poettering <lennart@poettering.net>
Thu, 9 Aug 2007 21:17:32 +0000 (21:17 +0000)
committerLennart Poettering <lennart@poettering.net>
Thu, 9 Aug 2007 21:17:32 +0000 (21:17 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1604 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/pulsecore/memblock.c

index f3e400ee6939857cf606bbfa239bd4c5259c01cd..f0e2b4c9e1235fe3d1dc977c24d899c67823a896 100644 (file)
@@ -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);