aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/gcj/jni/NativeThread.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gnu/gcj/jni/NativeThread.java')
-rw-r--r--libjava/gnu/gcj/jni/NativeThread.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/libjava/gnu/gcj/jni/NativeThread.java b/libjava/gnu/gcj/jni/NativeThread.java
new file mode 100644
index 0000000..9ed6d89
--- /dev/null
+++ b/libjava/gnu/gcj/jni/NativeThread.java
@@ -0,0 +1,28 @@
+// NativeThread.java - Wrapper for attached user threads.
+
+/* Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
+
+ 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);
+ alive_flag = true;
+ }
+
+ // Call this to mark the thread as finished.
+ public native void finish ();
+}