win32-threads.cc: (ensure_interrupt_event_initialized) New function for lazy initiali...
authorMohan Embar <gnustuff@thisiscool.com>
Fri, 19 Sep 2003 08:28:43 +0000 (08:28 +0000)
committerMohan Embar <membar@gcc.gnu.org>
Fri, 19 Sep 2003 08:28:43 +0000 (08:28 +0000)
commitb90e0e3cdb60af9429f1acd99d9e30a65c03752d
treed3850b3d1b7ded7bcbfb6b163fc0d2d5a78e5a7b
parent65f070242b4206f88edf3c53000520f3f5c0224a
win32-threads.cc: (ensure_interrupt_event_initialized) New function for lazy initialization of an...

* win32-threads.cc: (ensure_interrupt_event_initialized) New
function for lazy initialization of an auto-reset event.
(_Jv_CondWait) Added thread interrupt support.
(_Jv_ThreadInitData) Added initialization of interrupt support
members.
(_Jv_ThreadDestroyData) Added cleanup of interrupt support members.
(_Jv_ThreadStart) Removed unused code.
(_Jv_Win32GetInterruptEvent) New method for returning interrupt event
to an external caller.
(_Jv_ThreadInterrupt) Implemented.
* include/win32-threads.h: (_Jv_Thread_t) Added a Win32 auto-reset
event for interrupt support as well as a mutex which regulates
access to this.
(_Jv_Win32GetInterruptEvent) Declared new method for returning interrupt
event to an external caller.
* java/lang/natWin32Process.cc: (cleanup) Close handle to spawned
process.
(waitFor) Added interrupt support.

From-SVN: r71562
libjava/ChangeLog
libjava/include/win32-threads.h
libjava/java/lang/natWin32Process.cc
libjava/win32-threads.cc