6d958acf09
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
30 lines
648 B
Java
30 lines
648 B
Java
// NativeThread.java - Wrapper for attached user threads.
|
|
|
|
/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
|
|
|
|
This file is part of libgcj.
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
details. */
|
|
|
|
package gnu.gcj.jni;
|
|
|
|
/**
|
|
* @author Tom Tromey <tromey@cygnus.com>
|
|
* @date February 9, 2000
|
|
*/
|
|
|
|
public class NativeThread extends Thread
|
|
{
|
|
public NativeThread (ThreadGroup g, String name)
|
|
{
|
|
super (g, null, name);
|
|
init ();
|
|
}
|
|
|
|
// Call this to mark the thread as finished.
|
|
public native void finish ();
|
|
public native void init ();
|
|
}
|