[kaffe] CVS kaffe (guilhem): Fix for pthreads (but surely also for others)

Kaffe CVS cvs-commits at kaffe.org
Wed Jul 14 12:02:10 PDT 2004


PatchSet 4971 
Date: 2004/07/14 18:57:16
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Fix for pthreads (but surely also for others)

	* kaffe/kaffevm/ksem.c (ksemGet): Readded jmutex_lock.

Members: 
	ChangeLog:1.2535->1.2536 
	kaffe/kaffevm/ksem.c:1.3->1.4 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2535 kaffe/ChangeLog:1.2536
--- kaffe/ChangeLog:1.2535	Wed Jul 14 16:51:43 2004
+++ kaffe/ChangeLog	Wed Jul 14 18:57:16 2004
@@ -1,3 +1,7 @@
+2004-07-14  Guilhem Lavaux  <guilhem at kaffe.org>
+
+	* kaffe/kaffevm/ksem.c (ksemGet): Readded jmutex_lock.
+
 2004-07-13  Dalibor Topic  <robilad at kaffe.org>
 
         * libraries/javalib/essential.files,
Index: kaffe/kaffe/kaffevm/ksem.c
diff -u kaffe/kaffe/kaffevm/ksem.c:1.3 kaffe/kaffe/kaffevm/ksem.c:1.4
--- kaffe/kaffe/kaffevm/ksem.c:1.3	Sun Jul 11 17:44:55 2004
+++ kaffe/kaffe/kaffevm/ksem.c	Wed Jul 14 18:57:17 2004
@@ -45,6 +45,7 @@
 	if (timeout == 0)
 		timeout = NOTIMEOUT;
 
+	jmutex_lock(&sem->mux);
 	/* If no stored wakeups, then sleep. */
 	if (sem->count == 0) {
 		(void)jcondvar_wait(&sem->cv, &sem->mux, timeout);




More information about the kaffe mailing list