mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
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
This commit is contained in:
parent
e76efa990e
commit
0f155748da
1 changed files with 1 additions and 1 deletions
|
|
@ -743,7 +743,7 @@ pa_memimport* pa_memimport_new(pa_mempool *p, pa_memimport_release_cb_t cb, void
|
||||||
pa_assert(cb);
|
pa_assert(cb);
|
||||||
|
|
||||||
i = pa_xnew(pa_memimport, 1);
|
i = pa_xnew(pa_memimport, 1);
|
||||||
i->mutex = pa_mutex_new(0);
|
i->mutex = pa_mutex_new(1);
|
||||||
i->pool = p;
|
i->pool = p;
|
||||||
i->segments = pa_hashmap_new(NULL, NULL);
|
i->segments = pa_hashmap_new(NULL, NULL);
|
||||||
i->blocks = pa_hashmap_new(NULL, NULL);
|
i->blocks = pa_hashmap_new(NULL, NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue