OSDN Git Service

* include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Sep 1999 07:01:32 +0000 (07:01 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Sep 1999 07:01:32 +0000 (07:01 +0000)
in __m_count case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29193 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/THANKS
libjava/include/posix-threads.h

index 39b542a..9d60804 100644 (file)
@@ -1,3 +1,8 @@
+1999-09-08  Tom Tromey  <tromey@cygnus.com>
+
+       * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
+       in __m_count case.
+
 1999-09-07  Tom Tromey  <tromey@cygnus.com>
 
        * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
@@ -6,7 +11,7 @@
        * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
        not `r'.  Changed `done_sleeping' to a `bool'.
 
-1999-09-07  Matt Welsh <mdw@cs.berkeley.edu
+1999-09-07  Matt Welsh <mdw@cs.berkeley.edu>
 
        * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
        Added FLAG_INTERRUPTED to indicate that a thread was interrupted
index 1a75a6d..f60dc8f 100644 (file)
@@ -11,6 +11,7 @@ Franz Sirl            Franz.Sirl-kernel@lauterbach.com
 Geoff Berry            gcb@gnu.org
 Gilles Zunino          Gilles.Zunino@hei.fr
 Kresten Krab Thorup    krab@gnu.org
+Matt Welsh             mdw@cs.berkeley.edu
 Per Bothner            per@bothner.com
 Rainer Orth            ro@TechFak.Uni-Bielefeld.DE
 Stu Grossman           grossman@juniper.net
index cc8493a..00a918f 100644 (file)
@@ -114,7 +114,7 @@ _Jv_PthreadCheckMonitor (_Jv_Mutex_t *mu)
   // On Linux we exploit knowledge of the implementation.
   int r = pmu->m_count == 1;
 #elif defined (PTHREAD_MUTEX_HAVE___M_COUNT)
-  int r = pmu->__m_count == 1;
+  int r = (pthread_t) pmu->__m_owner == pthread_self ();
 #else
   int r = mu->count == 0;
 #endif