* src/native/vm/java_lang_Thread.c [ENABLE_THREADS]
authortwisti <none@none>
Thu, 5 Apr 2007 11:39:58 +0000 (11:39 +0000)
committertwisti <none@none>
Thu, 5 Apr 2007 11:39:58 +0000 (11:39 +0000)
commite94b661e08226bd7ae625cce8ef23d57afd3381f
tree805a15a1c6da9069af18de63defa287c03e01fbe
parent2e92c31de03ffc948767e000bdfd80581e7f5531
* src/native/vm/java_lang_Thread.c [ENABLE_THREADS]
(threads/native/threads.h): Removed.
(threads/threads-common.h): Added.
(vm/stringlocal.h): Likewise.
(vm/vm.h): Removed.
(getState): Implemented.

* src/threads/threads-common.c (vm/vm.h): Added.
(threads_get_state): New function.
(threads_dump): Print thread state.

* src/threads/threads-common.h (THREAD_STATE_NEW)
(THREAD_STATE_RUNNABLE, THREAD_STATE_BLOCKED, THREAD_STATE_WAITING)
(THREAD_STATE_TIMED_WAITING, THREAD_STATE_TERMINATED): Defined.
(threads_get_state): Added.

* src/threads/native/threads.c (threads_init): Set thread-state.
(threads_startup_thread): Likewise.
(threads_attach_current_thread): Likewise.
(threads_detach_thread): Likewise.
(threads_wait_with_timeout): Likewise.

* src/threads/native/threads.h (threadobject): Added state field.

* src/native/native.c (dummynativetable) [ENABLE_JAVASE]: Added
Java_java_lang_VMThread_getState.
src/native/native.c
src/native/vm/java_lang_Thread.c
src/threads/native/threads.c
src/threads/native/threads.h
src/threads/threads-common.c
src/threads/threads-common.h