26 #ifndef _THREADLIST_HPP
27 #define _THREADLIST_HPP
98 _number_of_started_java_threads(0),
99 _number_of_active_java_threads(0),
100 _peak_of_active_java_threads(0),
181 #endif // _THREADLIST_HPP
int32_t _peak_of_active_java_threads
void dump_threads()
Dumps info for all threads running in the VM.
threadobject * get_thread_by_index(int32_t index)
Return the thread object with the given index.
int32_t get_number_of_active_threads()
void get_active_java_threads(List< threadobject * > &list)
Fills the passed list with all currently active threads which should be visible to Java...
int32_t _number_of_active_java_threads
threadobject * get_main_thread()
Dummy implementation of a mutex.
int32_t _number_of_started_java_threads
int32_t get_number_of_daemon_java_threads()
Return the number of daemon threads visible to Java.
List< threadobject * > _free_thread_list
int32_t get_number_of_non_daemon_threads()
Return the number of non-daemon threads.
static ThreadList * the_threadlist
void release_thread(threadobject *t, bool needs_deactivate)
Release the thread.
void remove_from_active_thread_list(threadobject *t)
static void create_object()
Supposed to be called exactly once, early during initialization.
void reset_peak_of_active_java_threads()
int32_t get_peak_of_active_java_threads()
void wait_cond(Condition *cond)
void get_active_threads(List< threadobject * > &list)
Fills the passed list with all currently active threads.
void deactivate_thread(threadobject *t)
int32_t get_number_of_active_java_threads()
Dummy condition variable.
void add_to_active_thread_list(threadobject *t)
void get_free_thread(threadobject **t, int32_t *index)
Get the next free thread object.
threadobject * get_thread_from_java_object(java_handle_t *h)
Return the Java thread object from the given thread object.
int32_t get_number_of_started_java_threads()
AnyObjLocker< Mutex > MutexLocker
List< threadobject * > _active_thread_list
void wait(Mutex *mutex)
Waits for the condition variable.