win32-threads.h (_Jv_ConditionVariable_t): Now a struct, to enable safer wait() algor...
authorAdam Megacz <adam@xwt.org>
Sat, 2 Feb 2002 04:27:34 +0000 (04:27 +0000)
committerAdam Megacz <megacz@gcc.gnu.org>
Sat, 2 Feb 2002 04:27:34 +0000 (04:27 +0000)
commit8627cc158dc97db6469d7ca0099da712c1a37189
treeb45c54ba65df5ae1f0bd56edb59f62779c6eaeb3
parent7e57448e82dc78b2dde1684f4f33e06b77dc7dde
win32-threads.h (_Jv_ConditionVariable_t): Now a struct, to enable safer wait() algorithm.

2002-02-01  Adam Megacz <adam@xwt.org>

        * include/win32-threads.h (_Jv_ConditionVariable_t): Now a struct, to
enable safer wait() algorithm.
(_Jv_CondWait, _Jv_CondInit, _Jv_CondDestroy, _Jv_CondNotify,
_Jv_CondNotifyAll): Implementations moved to win32-threads.cc.
(_Jv_MutexInit, _Jv_HaveMutexDestroy, _Jv_MutexUnlock,
_Jv_MutexLock, _Jv_ThreadYield): Reimplement using CRITICAL_SECTIONs
instead of mutex.
(_Jv_ThreadYield): Don't call Sleep(), because it crashes win98.

From-SVN: r49427
libjava/ChangeLog
libjava/include/win32-threads.h