diff options
| author | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-22 06:47:48 +0000 |
|---|---|---|
| committer | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-22 06:47:48 +0000 |
| commit | 98cf095aceed6a89d0524b8cfbcb11a5ee823c70 (patch) | |
| tree | ecfc0fb5d915f5f6596ef061114d1b6b7ec5270a /libjava/gnu/gcj/jni | |
| parent | 4737d8efd8bdfccb3d0d41413aaf3933f25780ce (diff) | |
| download | ppe42-gcc-98cf095aceed6a89d0524b8cfbcb11a5ee823c70.tar.gz ppe42-gcc-98cf095aceed6a89d0524b8cfbcb11a5ee823c70.zip | |
Implement invocation interface; don't create new thread for main.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42428 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/gcj/jni')
| -rw-r--r-- | libjava/gnu/gcj/jni/NativeThread.java | 29 | ||||
| -rw-r--r-- | libjava/gnu/gcj/jni/natNativeThread.cc | 30 |
2 files changed, 0 insertions, 59 deletions
diff --git a/libjava/gnu/gcj/jni/NativeThread.java b/libjava/gnu/gcj/jni/NativeThread.java deleted file mode 100644 index 4d3eb78ac74..00000000000 --- a/libjava/gnu/gcj/jni/NativeThread.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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 (); -} diff --git a/libjava/gnu/gcj/jni/natNativeThread.cc b/libjava/gnu/gcj/jni/natNativeThread.cc deleted file mode 100644 index 359b572ca53..00000000000 --- a/libjava/gnu/gcj/jni/natNativeThread.cc +++ /dev/null @@ -1,30 +0,0 @@ -// natNativeThread.cc - Native side of attached 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. */ - -// Written by Tom Tromey <tromey@cygnus.com> - -#include <config.h> - -#include <gcj/cni.h> -#include <jvm.h> -#include <gnu/gcj/jni/NativeThread.h> -#include <java/lang/Thread.h> - -void -gnu::gcj::jni::NativeThread::finish () -{ - finish_ (); -} - -void -gnu::gcj::jni::NativeThread::init () -{ - alive_flag = true; // alive_flag is private in java.lang.Thread -} |

