* src/lib/vm/reference/java/lang/VMThread.java: Updated to GNU
authortwisti <none@none>
Wed, 28 Jun 2006 22:38:42 +0000 (22:38 +0000)
committertwisti <none@none>
Wed, 28 Jun 2006 22:38:42 +0000 (22:38 +0000)
Classpath version.

src/lib/vm/reference/java/lang/VMThread.java

index d2f64c42ed26d9391c7faad8c722650a2d464acb..2871beb92adfd0fde4100e15f78b058c93886a89 100644 (file)
@@ -447,4 +447,16 @@ final class VMThread
 //     }
 //     }
     static native boolean holdsLock(Object obj);
+
+  /**
+   * Returns the current state of the thread.
+   * The value must be one of "BLOCKED", "NEW",
+   * "RUNNABLE", "TERMINATED", "TIMED_WAITING" or
+   * "WAITING".
+   *
+   * @return a string corresponding to one of the 
+   *         thread enumeration states specified above.
+   */
+  native String getState();
+
 }