* src/native/jni.c (jni_attach_current_thread): New help function.
authortwisti <none@none>
Thu, 5 Oct 2006 17:28:13 +0000 (17:28 +0000)
committertwisti <none@none>
Thu, 5 Oct 2006 17:28:13 +0000 (17:28 +0000)
commit18933d09a9aba88276919a2bb8b0983041560bb0
tree10c4d9ee5275659c40478e086bced4908a6dc4fe
parentb20e974d30a2cb059057e576ba05b3427a8fa64b
* src/native/jni.c (jni_attach_current_thread): New help function.
(_Jv_JNI_AttachCurrentThread): Use helper function.
(_Jv_JNI_AttachCurrentThreadAsDaemon): Likewise.
(_Jv_JNI_DetachCurrentThread): Implemented.

* src/threads/native/threads.c (method_thread_init)
(method_threadgroup_add_: Made static.
(threads_init): Code rearranged.
(threads_startup_thread): Removed thread detach code and call
threads_detach_thread.
(threads_detach_thread): New function.

* src/threads/native/threads.h (threads_detach_thread): Added.
src/native/jni.c
src/threads/native/threads.c
src/threads/native/threads.h