* src/threads/native/threads.c (threads_init): Fixed string-internal
[cacao.git] / src / threads / threads-common.h
index 1e4944128571aa24f3c5a354c4a859aad4188bc0..b1b673196efb6f1696f44c8c126a976ecb0fbabb 100644 (file)
 #include "vmcore/utf8.h"
 
 
+/* thread states **************************************************************/
+
+#define THREAD_STATE_NEW              0
+#define THREAD_STATE_RUNNABLE         1
+#define THREAD_STATE_BLOCKED          2
+#define THREAD_STATE_WAITING          3
+#define THREAD_STATE_TIMED_WAITING    4
+#define THREAD_STATE_TERMINATED       5
+
+
 /* thread priorities **********************************************************/
 
 #define MIN_PRIORITY     1
 
 threadobject *threads_create_thread(utf *name);
 ptrint        threads_get_current_tid(void);
+utf          *threads_thread_get_state(threadobject *thread);
+bool          threads_thread_is_alive(threadobject *thread);
+void          threads_dump(void);
+void          threads_thread_print_stacktrace(threadobject *thread);
+void          threads_print_stacktrace(void);
 
 #endif /* _THREADS_COMMON_H */