posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
authorTom Tromey <tromey@cygnus.com>
Wed, 1 Sep 1999 21:03:18 +0000 (21:03 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 1 Sep 1999 21:03:18 +0000 (21:03 +0000)
commit45329b398e53033647ba465cacc256f32ff7daf4
tree03902269d263d5fdbf51b709ce65fe57c0a73bb6
parent4499762c6e6403127bd8f9a1932ac64940fca20f
posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.

* posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
* include/posix-threads.h (_Jv_Mutex_t): Define as structure,
except on Linux.
(_Jv_PthreadGetMutex): New function.
(_Jv_PthreadCheckMonitor): Use it.
(_Jv_MutexInit): Likewise.  ALso, initialize `count'.
(_Jv_MutexLock): Update `count'.
(_Jv_MutexUnlock): Likewise.
(_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
appropriate.

From-SVN: r29032
libjava/ChangeLog
libjava/include/posix-threads.h
libjava/posix-threads.cc