gcc/libjava/include
Ranjit Mathew 65b8e87409 re PR java/9254 (java::lang::Object::wait(), threads-win32.cc returns wrong return codes)
2003-01-28  Ranjit Mathew  <rmathew@hotmail.com>

	Fixes PR java/9254:
	* include/win32-threads.h (_Jv_Mutex_t): Convert to a struct
	additionally containing id of the owner thread as well as
	the number of nested times the thread has acquired the mutex.
	(_Jv_MutexInit): Initialise owner thread id and refcount to 0.
	(_Jv_MutexDestroy): Reset owner thread id and refcount to 0.
	(_Jv_MutexUnlock): Check if really the owner thread, reset
	owner thread id to 0 before leaving, if leaving for the last
	time.
	(_Jv_MutexLock): Set owner thread id in the mutex and increment
	refcount.
	(_Jv_ThreadYield): Yield using a call to Sleep(0).
	* win32-threads.cc (_Jv_CondWait): Check if really owner of
	the passed mutex.
	Pass handle of the broadcast event, instead of a pointer to it
	in Win32 ResetEvent( ) call.
	Remove incorrect return values.
	(_Jv_CondDestroy): Close both event handles and delete
	critical section.
	(_Jv_CondNotify): Check if really the owner thread.
	(_Jv_CondNotifyAll): Check if really the owner thread.
	(_Jv_InitThreads): Change daemon_cond to a manual-reset event.
	(really_start): Use SetEvent( ) to signal daemon_cond.
	(_Jv_ThreadWait): Remove SignalObjectAndWait( ) and use
	WaitForSingleObject( ) instead to wait for daemon_cond to be
	signalled.

From-SVN: r62033
2003-01-28 22:23:36 +00:00
..
.cvsignore cvsignore: New file to ignore files generated during build. 2002-10-10 05:21:53 +00:00
boehm-gc.h boehm.cc: Remove stray semicolon. 2002-12-28 06:38:52 +00:00
config.h.in aclocal.m4 (CHECK_FOR_BROKEN_MINGW_LD): added 2002-10-21 01:50:14 +00:00
default-signal.h Jumbo patch: 2000-05-19 17:55:34 +00:00
dwarf2-signal.h dwarf2-signal.h: Remove x86_64. 2003-01-14 14:02:13 +00:00
i386-signal.h i386-signal.h (old_i386_kernel_sigaction): New. 2002-03-18 17:11:43 +00:00
java-assert.h All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
java-chardecomp.h unicode-decomp.pl: Move from chartables.pl... 2002-03-06 18:54:45 +00:00
java-chartables.h unicode-decomp.pl: Move from chartables.pl... 2002-03-06 18:54:45 +00:00
java-cpool.h [multiple changes] 2000-03-26 20:33:04 +00:00
java-insns.h verify.cc (construct_primitive_array_type): New case. 2002-04-26 22:39:29 +00:00
java-interp.h defineclass.cc (handleMethodsEnd): Precompute code for static method. 2003-01-24 19:58:21 +00:00
java-props.h natSystem.cc (init_properties): Change sourceware reference to sources.redhat.com. 2000-08-21 06:05:20 +00:00
jni.h boehm.cc: Remove stray semicolon. 2002-12-28 06:38:52 +00:00
jvm.h boehm.cc: Remove stray semicolon. 2002-12-28 06:38:52 +00:00
jvmpi.h Forgot to add this file before... 2000-04-02 15:41:00 +00:00
Makefile.am Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo. 2001-04-04 23:38:53 +00:00
Makefile.in ObjectInputStream.java (resolveProxyClass): New method from Classpath. 2002-10-01 03:46:43 +00:00
no-gc.h All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
no-threads.h Implement invocation interface; don't create new thread for main. 2001-05-21 23:47:48 -07:00
posix-threads.h * include/posix-threads.h [alpha] (_Jv_ThreadSelf): Avoid a copy. 2002-03-27 11:25:04 -08:00
posix.h posix.h (_Jv_platform_usleep): Wrap in ifdef JV_HASH_SYNCHRONIZATION. 2003-01-07 16:50:08 +00:00
s390-signal.h configure.host [...]: Set can_unwind_signal=yes. 2002-05-29 18:36:50 +00:00
sparc-signal.h dwarf2-signal.h (SIGNAL_HANDLER): Name siginfo_t pointer arg. 2002-04-21 02:37:49 -07:00
stamp-h.in * include/stamp-h.in: New file. 1999-07-19 18:03:31 +00:00
win32-signal.h re GNATS libgcj/261 (Macro-inconsistency) 2000-06-16 15:52:24 +00:00
win32-threads.h re PR java/9254 (java::lang::Object::wait(), threads-win32.cc returns wrong return codes) 2003-01-28 22:23:36 +00:00
win32.h configure.in: Specifically define HAVE_BACKTRACE if building for MinGW. 2003-01-28 19:10:00 +00:00
x86_64-signal.h x86_64-signal.h: Add simple handler for x86_64 32-bit mode. 2003-01-22 17:47:04 +00:00