diff options
author | Tom Tromey <tromey@redhat.com> | 2002-04-10 20:36:04 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-04-10 20:36:04 +0000 |
commit | 880f8c16ad60e5c3536101de2e860ba90147f1e3 (patch) | |
tree | 83b2914991f41b4c53152d00ff2da8b3917d29df /libjava/gcj | |
parent | 174bf2b1b287f13799f879d4b916c4d8f9d83923 (diff) | |
download | gcc-880f8c16ad60e5c3536101de2e860ba90147f1e3.zip gcc-880f8c16ad60e5c3536101de2e860ba90147f1e3.tar.gz gcc-880f8c16ad60e5c3536101de2e860ba90147f1e3.tar.bz2 |
Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
* Makefile.am (java/lang/Thread.h): Mark
_Jv_AttachCurrentThreadAsDaemon as friend.
* gcj/javaprims.h (_Jv_AttachCurrentThreadAsDaemon): Declare.
* gcj/cni.h (JvAttachCurrentThreadAsDaemon): New function.
* java/lang/natThread.cc (_Jv_AttachCurrentThreadAsDaemon): New
function.
* java/lang/natRuntime.cc (_load): Recognize JNI_VERSION_1_4.
* jni.cc (_Jv_JNI_GetVersion): Return JNI_VERSION_1_4.
(_Jv_JNI_InvokeFunctions): Added
_Jv_JNI_AttachCurrentThreadAsDaemon.
(_Jv_JNI_GetEnv): Handle JNI_VERSION_1_4.
(JNI_GetDefaultJavaVMInitArgs): Likewise.
(JNI_CreateJavaVM): Likewise.
(_Jv_JNI_AttachCurrentThread): Likewise.
(_Jv_JNI_AttachCurrentThread): Added `is_daemon' argument.
(_Jv_JNI_AttachCurrentThreadAsDaemon): New method.
(_Jv_JNIFunctions): Initialize new fields.
(_Jv_JNI_NewDirectByteBuffer): New function.
(_Jv_JNI_GetDirectBufferAddress): Likewise.
(_Jv_JNI_GetDirectBufferCapacity): Likewise.
* include/jni.h (JNI_VERSION_1_4): New macro.
(JNIInvokeInterface::AttachCurrentThreadAsDaemon): New field.
(_Jv_JavaVM::AttachCurrentThreadAsDaemon): New method.
(JNINativeInterface::NewDirectByteBuffer): New field.
(JNINativeInterface::GetDirectBufferAddress): New field.
(JNINativeInterface::GetDirectBufferCapacity): New field.
(_Jv_JNIEnv::NewDirectByteBuffer): New method.
(_Jv_JNIEnv::GetDirectBufferAddress): New method.
(_Jv_JNIEnv::GetDirectBufferCapacity): New method.
From-SVN: r52144
Diffstat (limited to 'libjava/gcj')
-rw-r--r-- | libjava/gcj/cni.h | 8 | ||||
-rw-r--r-- | libjava/gcj/javaprims.h | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/libjava/gcj/cni.h b/libjava/gcj/cni.h index b1254a2..08b55c3 100644 --- a/libjava/gcj/cni.h +++ b/libjava/gcj/cni.h @@ -2,7 +2,7 @@ // This file describes the Cygnus Native Interface, CNI. // It provides a nicer interface to many of the things in gcj/javaprims.h. -/* Copyright (C) 1998, 1999 Free Software Foundation +/* Copyright (C) 1998, 1999, 2002 Free Software Foundation This file is part of libgcj. @@ -131,6 +131,12 @@ JvAttachCurrentThread (jstring name, java::lang::ThreadGroup* group) return _Jv_AttachCurrentThread (name, group); } +extern inline java::lang::Thread* +JvAttachCurrentThreadAsDaemon (jstring name, java::lang::ThreadGroup* group) +{ + return _Jv_AttachCurrentThreadAsDaemon (name, group); +} + extern inline jint JvDetachCurrentThread (void) { diff --git a/libjava/gcj/javaprims.h b/libjava/gcj/javaprims.h index c4d86fb..4337f56 100644 --- a/libjava/gcj/javaprims.h +++ b/libjava/gcj/javaprims.h @@ -418,6 +418,8 @@ jint _Jv_AttachCurrentThread(java::lang::Thread* thread); extern "C" java::lang::Thread* _Jv_AttachCurrentThread(jstring name, java::lang::ThreadGroup* group); +extern "C" java::lang::Thread* +_Jv_AttachCurrentThreadAsDaemon(jstring name, java::lang::ThreadGroup* group); extern "C" jint _Jv_DetachCurrentThread (void); extern "C" void _Jv_Throw (jthrowable) __attribute__ ((__noreturn__)); |