mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-26 22:34:27 +08:00
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
This commit is contained in:
parent
7def125130
commit
6d958acf09
@ -1,3 +1,11 @@
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user