[kaffe] CVS kaffe (kaz): kaffe/kaffevm/systems/unix-pthreads/lock-impl.h:

Kaffe CVS cvs-commits at kaffe.org
Sun Jul 11 17:54:31 PDT 2004


PatchSet 4934 
Date: 2004/07/12 00:02:25
Author: kaz
Branch: HEAD
Tag: (none) 
Log:
2004-07-11  Ito Kazumitsu  <kaz at maczuka.gcd.org>

        * kaffe/kaffevm/systems/unix-pthreads/lock-impl.h:
        _POSIX_THREAD_PROCESS_SHARED must be defined with a value
        other than -1 to be effective.

Members: 
	ChangeLog:1.2499->1.2500 
	kaffe/kaffevm/systems/unix-pthreads/lock-impl.h:1.7->1.8 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2499 kaffe/ChangeLog:1.2500
--- kaffe/ChangeLog:1.2499	Sun Jul 11 21:06:20 2004
+++ kaffe/ChangeLog	Mon Jul 12 00:02:25 2004
@@ -1,3 +1,9 @@
+2004-07-11  Ito Kazumitsu  <kaz at maczuka.gcd.org>
+
+	* kaffe/kaffevm/systems/unix-pthreads/lock-impl.h:
+	_POSIX_THREAD_PROCESS_SHARED must be defined with a value
+	other than -1 to be effective.
+
 2004-07-11  Dalibor Topic  <robilad at kaffe.org>,
 
 	* config/Makefile.am:
Index: kaffe/kaffe/kaffevm/systems/unix-pthreads/lock-impl.h
diff -u kaffe/kaffe/kaffevm/systems/unix-pthreads/lock-impl.h:1.7 kaffe/kaffe/kaffevm/systems/unix-pthreads/lock-impl.h:1.8
--- kaffe/kaffe/kaffevm/systems/unix-pthreads/lock-impl.h:1.7	Wed May 26 22:13:19 2004
+++ kaffe/kaffe/kaffevm/systems/unix-pthreads/lock-impl.h	Mon Jul 12 00:02:47 2004
@@ -43,7 +43,7 @@
    * requests the mutex
    */
   pthread_mutexattr_init( &muxAttr);
-#if defined(_POSIX_THREAD_PROCESS_SHARED)
+#if defined(_POSIX_THREAD_PROCESS_SHARED) && _POSIX_THREAD_PROCESS_SHARED != -1
   pthread_mutexattr_setpshared( &muxAttr, PTHREAD_PROCESS_PRIVATE);
 #endif
 #if defined(_POSIX_THREAD_PRIO_INHERIT_POSIX_THREAD_PRIO_PROTECT)
@@ -75,7 +75,7 @@
 
   /* init a process private condvar */
   pthread_condattr_init( &cvAttr);
-#if defined(_POSIX_THREAD_PROCESS_SHARED)
+#if defined(_POSIX_THREAD_PROCESS_SHARED) && _POSIX_THREAD_PROCESS_SHARED != -1
   pthread_condattr_setpshared( &cvAttr, PTHREAD_PROCESS_PRIVATE);
 #endif
   pthread_cond_init( cv, &cvAttr);




More information about the kaffe mailing list