Commit 6d958acf by Alexandre Petit-Bianco Committed by Alexandre Petit-Bianco

NativeThread.java (NativeThread): Removed assignment to `alive_flag', call `init'.

2000-08-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
	to `alive_flag', call `init'.
	(init): New native method.
	* gnu/gcj/jni/natNativeThread.cc (init): New native method
	implementation.

(http://sources.redhat.com/ml/java-patches/2000-q3/msg00142.html)

From-SVN: r35931
parent 7def1251
2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
* gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
to `alive_flag', call `init'.
(init): New native method.
* gnu/gcj/jni/natNativeThread.cc (init): New native method
implementation.
2000-08-21 Mark Wielaard <mark@klomp.org>
* Makefile.in: Rebuilt.
......
......@@ -20,9 +20,10 @@ public class NativeThread extends Thread
public NativeThread (ThreadGroup g, String name)
{
super (g, null, name);
alive_flag = true;
init ();
}
// Call this to mark the thread as finished.
public native void finish ();
public native void init ();
}
......@@ -22,3 +22,9 @@ gnu::gcj::jni::NativeThread::finish ()
{
finish_ ();
}
void
gnu::gcj::jni::NativeThread::init ()
{
alive_flag = true; // alive_flag is private in java.lang.Thread
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment