Definition at line 38 of file threadlist.hpp.
ThreadList::ThreadList |
( |
| ) |
|
|
inline |
void ThreadList::create_object |
( |
| ) |
|
|
inlinestatic |
Supposed to be called exactly once, early during initialization.
Definition at line 105 of file threadlist.hpp.
void ThreadList::dump_threads |
( |
| ) |
|
Dumps info for all threads running in the VM.
This function is called when SIGQUIT (<ctrl>-) is sent to the VM.
Definition at line 47 of file threadlist.cpp.
Fills the passed list with all currently active threads which should be visible to Java.
Creating a copy of the thread list here, is the only way to ensure we do not end up in a dead-lock when iterating over the list.
- Parameters
-
list | list class to be filled |
Definition at line 111 of file threadlist.cpp.
Fills the passed list with all currently active threads.
Creating a copy of the thread list here, is the only way to ensure we do not end up in a dead-lock when iterating over the list.
- Parameters
-
list | list class to be filled |
Definition at line 95 of file threadlist.cpp.
Get the next free thread object.
Gets the next free thread object and a thread index for it. The results are stored into the passed pointers.
If no free thread is available `*thread' will contain NULL. `*index' will always, even if no free thread is available, contain a valid index you can use for a new thread.
Definition at line 138 of file threadlist.cpp.
int32_t ThreadList::get_number_of_active_java_threads |
( |
| ) |
|
|
inline |
int32_t ThreadList::get_number_of_active_threads |
( |
| ) |
|
|
inline |
int32_t ThreadList::get_number_of_daemon_java_threads |
( |
void |
| ) |
|
Return the number of daemon threads visible to Java.
NOTE: This function does a linear-search over the threads list, because it is only used by the management interface.
- Returns
- number of daemon threads
Definition at line 164 of file threadlist.cpp.
int32_t ThreadList::get_number_of_non_daemon_threads |
( |
void |
| ) |
|
Return the number of non-daemon threads.
NOTE: This function does a linear-search over the threads list, because it is only used for joining the threads.
- Returns
- number of non daemon threads
Definition at line 195 of file threadlist.cpp.
int32_t ThreadList::get_number_of_started_java_threads |
( |
| ) |
|
|
inline |
int32_t ThreadList::get_peak_of_active_java_threads |
( |
| ) |
|
|
inline |
threadobject * ThreadList::get_thread_by_index |
( |
int32_t |
index | ) |
|
Return the thread object with the given index.
- Returns
- thread object
Definition at line 224 of file threadlist.cpp.
Return the Java thread object from the given thread object.
- Returns
- Java thread object
Definition at line 251 of file threadlist.cpp.
Mutex& ThreadList::mutex |
( |
| ) |
|
|
inline |
Release the thread.
- Returns
- free thread index
Definition at line 282 of file threadlist.cpp.
void ThreadList::reset_peak_of_active_java_threads |
( |
| ) |
|
|
inline |
int32_t ThreadList::_last_index |
|
private |
int32_t ThreadList::_number_of_active_java_threads |
|
private |
int32_t ThreadList::_number_of_started_java_threads |
|
private |
int32_t ThreadList::_peak_of_active_java_threads |
|
private |
The documentation for this class was generated from the following files:
- /home/bbc/buildbot/slave/doxygen-compiler2/source/cacao/src/threads/threadlist.hpp
- /home/bbc/buildbot/slave/doxygen-compiler2/source/cacao/src/threads/threadlist.cpp