pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/mplayer-share/patches Fix Posix Threads locki...
details: https://anonhg.NetBSD.org/pkgsrc/rev/af172cb3fb41
branches: trunk
changeset: 466927:af172cb3fb41
user: tron <tron%pkgsrc.org@localhost>
date: Sat Jan 24 15:00:26 2004 +0000
description:
Fix Posix Threads locking problem as suggested by Min Sik Kim on the
"current-users" mailing list.
diffstat:
graphics/mplayer-share/patches/patch-ab | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diffs (22 lines):
diff -r 4abc8d00425c -r af172cb3fb41 graphics/mplayer-share/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/mplayer-share/patches/patch-ab Sat Jan 24 15:00:26 2004 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-ab,v 1.11 2004/01/24 15:00:26 tron Exp $
+
+--- loader/win32.c.orig 2003-09-06 00:08:23.000000000 +0200
++++ loader/win32.c 2004-01-24 15:39:14.000000000 +0100
+@@ -1374,8 +1374,11 @@
+ printf("Win32 Warning: Leaving uninitialized Critical Section %p!!\n", c);
+ return;
+ }
+- cs->locked=0;
+- pthread_mutex_unlock(&(cs->mutex));
++ if (cs->locked)
++ {
++ cs->locked=0;
++ pthread_mutex_unlock(&(cs->mutex));
++ }
+ return;
+ }
+
Home |
Main Index |
Thread Index |
Old Index