[PATCH] Unlock mutex before destroying it
28 Feb
2005
28 Feb
'05
4:17 p.m.
Hi, I retrieved this patch from NetBSD pkgsrc, http://ftp2.skynet.be/pub/ftp.netbsd.org/packages/pkgsrc/multimedia/mplayer-... 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.
7898
Age (days ago)
7898
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jan Knutar