diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-08-09 21:17:32 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-08-09 21:17:32 +0000 |
commit | 0f155748da35e97ea00bea85b2b0e2defa7bf931 (patch) | |
tree | 2cc6388ee6f40a850666e93f859ac43b0e782857 /src | |
parent | e76efa990e4a157ec6c1599b1fac348fd49acaaf (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/pulsecore/memblock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/memblock.c b/src/pulsecore/memblock.c index f3e400ee..f0e2b4c9 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); |