[MPlayer-dev-eng] [PATCH] Unlock mutex before destroying it
Jan Knutar
jknutar at nic.fi
Mon Feb 28 17:17:45 CET 2005
Hi,
I retrieved this patch from NetBSD pkgsrc,
http://ftp2.skynet.be/pub/ftp.netbsd.org/packages/pkgsrc/multimedia/mplayer-share/patches/patch-ab
The cvs log entry had the following:
---
date: 2004/07/24 01:19:35; author: wiz; state: Exp; lines: +13 -15
Unlocking a mutex before destroying it makes libpthread much happier.
---
pthread_mutex_destroy(3) seems to agree, but also seems to hint that
the call is essentially NOOP on Linux, which doesn't necessarily apply
to other OSen...
Tested on Linux with a few files requiring win32 codec, no side effects
apparent.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mutex_unlock_before_destroy.patch
Type: text/x-diff
Size: 450 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050228/4d28ff3e/attachment.patch>
More information about the MPlayer-dev-eng
mailing list