Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ThreadInfo Class Reference

#include <threads.h>

Collaboration diagram for ThreadInfo:

Collaboration graph
[legend]
List of all members.

Public Methods

 ThreadInfo ()
 ThreadInfo (const ThreadInfo &)
 ThreadInfo (char *thread_name, char *group_name, char *parent_name, jobjectID thread_id, JNIEnv *thread_env_id)
unsigned long getStarted () const
void setStarted (unsigned long started) const
const char* getShortInfo () const
string getThreadName () const

Private Attributes

string m_thread_name
jobjectID m_thread_id
JNIEnv m_thread_env_id
char m_printable [512]
unsigned long m_started

Constructor & Destructor Documentation

ThreadInfo::ThreadInfo ( ) [inline]
 

Definition at line 54 of file threads.h.

00054 { }

ThreadInfo::ThreadInfo ( const ThreadInfo & ci )
 

Definition at line 60 of file threads.cpp.

00061 {
00062     strncpy(m_printable, ci.m_printable, 512);
00063     m_thread_name = ci.m_thread_name;
00064 }

ThreadInfo::ThreadInfo ( char * thread_name,
char * group_name,
char * parent_name,
jobjectID thread_id,
JNIEnv * thread_env_id )
 

Definition at line 51 of file threads.cpp.

00052 :   m_thread_name(FixNull(thread_name)), 
00053     m_thread_id(thread_id),
00054     m_thread_env_id(*thread_env_id),
00055     m_started(0)
00056 {
00057     _snprintf(m_printable, 512, "%s\n%s\n%s\n", FixNull(thread_name), FixNull(group_name), FixNull(parent_name));
00058 }


Member Function Documentation

const char * ThreadInfo::getShortInfo ( ) const [inline]
 

Definition at line 76 of file threads.cpp.

Referenced by ThreadDump().

00077 {
00078     return m_printable;
00079 }

unsigned long ThreadInfo::getStarted ( ) const [inline]
 

Definition at line 71 of file threads.cpp.

Referenced by ThreadDump().

00072 {
00073     return m_started;
00074 }

string ThreadInfo::getThreadName ( ) const [inline]
 

Definition at line 81 of file threads.cpp.

00082 {
00083     return m_thread_name;
00084 }

void ThreadInfo::setStarted ( unsigned long started ) const
 

Definition at line 66 of file threads.cpp.

Referenced by ThreadStartHandler().

00067 {
00068     m_started = started;
00069 }


Member Data Documentation

char ThreadInfo::m_printable [private]
 

Definition at line 51 of file threads.h.

unsigned long ThreadInfo::m_started [mutable, private]
 

Definition at line 52 of file threads.h.

JNIEnv ThreadInfo::m_thread_env_id [private]
 

Definition at line 50 of file threads.h.

jobjectID ThreadInfo::m_thread_id [private]
 

Definition at line 49 of file threads.h.

string ThreadInfo::m_thread_name [private]
 

Definition at line 48 of file threads.h.


The documentation for this class was generated from the following files:
Generated at Sun Jun 24 20:59:21 2001 for xdprof by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001