diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 2000-08-24 02:16:57 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-08-23 19:16:57 -0700 |
commit | 6d958acf09c0e04b8b0b3c251e2dd2a38c28c254 (patch) | |
tree | b64c0fde3c3e1f03637b3e62bc63cb86c3831a6a /libjava/gnu | |
parent | 7def1251301aac2e419c8a1d84d73d08d32debeb (diff) | |
download | gcc-6d958acf09c0e04b8b0b3c251e2dd2a38c28c254.zip gcc-6d958acf09c0e04b8b0b3c251e2dd2a38c28c254.tar.gz gcc-6d958acf09c0e04b8b0b3c251e2dd2a38c28c254.tar.bz2 |
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
Diffstat (limited to 'libjava/gnu')
-rw-r--r-- | libjava/gnu/gcj/jni/NativeThread.java | 3 | ||||
-rw-r--r-- | libjava/gnu/gcj/jni/natNativeThread.cc | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/libjava/gnu/gcj/jni/NativeThread.java b/libjava/gnu/gcj/jni/NativeThread.java index 94d4b68..4d3eb78 100644 --- a/libjava/gnu/gcj/jni/NativeThread.java +++ b/libjava/gnu/gcj/jni/NativeThread.java @@ -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 (); } diff --git a/libjava/gnu/gcj/jni/natNativeThread.cc b/libjava/gnu/gcj/jni/natNativeThread.cc index 1fa3143..359b572 100644 --- a/libjava/gnu/gcj/jni/natNativeThread.cc +++ b/libjava/gnu/gcj/jni/natNativeThread.cc @@ -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 +} |