[pulseaudio-commits] r1604 - /branches/lennart/src/pulsecore/memblock.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Thu Aug 9 14:17:33 PDT 2007
Author: lennart
Date: Thu Aug 9 23:17:32 2007
New Revision: 1604
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1604&root=3Dpulseaudio&vi=
ew=3Drev
Log:
protect memimpors with a recursive mutex to avoid deadlock when shutting do=
wn
Modified:
branches/lennart/src/pulsecore/memblock.c
Modified: branches/lennart/src/pulsecore/memblock.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
memblock.c?rev=3D1604&root=3Dpulseaudio&r1=3D1603&r2=3D1604&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/pulsecore/memblock.c (original)
+++ branches/lennart/src/pulsecore/memblock.c Thu Aug 9 23:17:32 2007
@@ -743,7 +743,7 @@
pa_assert(cb);
=
i =3D pa_xnew(pa_memimport, 1);
- i->mutex =3D pa_mutex_new(0);
+ i->mutex =3D pa_mutex_new(1);
i->pool =3D p;
i->segments =3D pa_hashmap_new(NULL, NULL);
i->blocks =3D pa_hashmap_new(NULL, NULL);
More information about the pulseaudio-commits
mailing list