Set the owner to 0 while releasing a recursive mutex
authorGeoffroy Couprie <geo.couprie@gmail.com>
Wed, 10 Sep 2008 12:26:43 +0000 (14:26 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 10 Sep 2008 15:16:42 +0000 (18:16 +0300)
commit67677f32c9e96657b3e236cb7a857228a9ff2f76
treef99bbaf4d5f725a86f3784bef3e81912c28101d3
parentd31ffb66570ed113e7df4477e8e99f260a5b256a
Set the owner to 0 while releasing a recursive mutex

I (and dionoea too, I think) encountered an "assertion failed self ==
0" when trying to play a file on win32. I think the following patch
solves this issue. If I understand correcly, the intended behaviour
was to zero the owner field of the mutex when releasing it.

Modified by Courmisch to use InterlockedExchange() directly.

Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
src/misc/threads.c