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

TThread Class Reference

#include <TThread.h>

Inheritance diagram for TThread:

Inheritance graph
[legend]
Collaboration diagram for TThread:

Collaboration graph
[legend]
List of all members.

Public Types

enum  EPriority { kLowPriority, kNormalPriority, kHighPriority }
enum  EState {
  kInvalidState, kNewState, kRunningState, kTerminatedState,
  kFinishedState, kCancelingState, kCanceledState, kDeletingState
}

Public Methods

 TThread (void *(*fn)(void *), void *arg=0, EPriority pri=kNormalPriority)
 TThread (void(*fn)(void *), void *arg=0, EPriority pri=kNormalPriority)
 TThread (Int_t id=0)
 TThread (const char *thname, void *(*fn)(void *), void *arg=0, EPriority pri=kNormalPriority)
 TThread (const char *thname, void(*fn)(void *), void *arg=0, EPriority pri=kNormalPriority)
virtual ~TThread ()
Int_t Kill ()
Int_t Run (void *arg=0)
void SetPriority (EPriority pri)
void Delete (Option_t *option="")
EPriority GetPriority () const
EState GetState () const
Long_t GetId () const
void Ps ()
void ps ()
Long_t GetJoindId () const
void SetJoinId (TThread *tj)
void SetJoinId (Long_t jid)

Static Public Methods

Long_t Join (Long_t id, void **ret=0)
Long_t Join (void **ret=0)
Int_t Exit (void *ret=0)
Int_t Exists ()
TThread * GetThread (Long_t id)
TThread * GetThread (const char *name)
Int_t Lock ()
Int_t TryLock ()
Int_t UnLock ()
TThread * Self ()
Long_t SelfId ()
Int_t Sleep (ULong_t secs, ULong_t nanos=0)
Int_t GetTime (ULong_t *absSec, ULong_t *absNanoSec)
void Debu (const char *txt)
Int_t Delete (TThread *&th)
void ** Tsd (void *dflt, Int_t k)
Int_t Kill (Long_t id)
Int_t Kill (const char *name)
Int_t SetCancelOff ()
Int_t SetCancelOn ()
Int_t SetCancelAsynchronous ()
Int_t SetCancelDeferred ()
Int_t CancelPoint ()
Int_t CleanUpPush (void *free, void *arg=0)
Int_t CleanUpPop (Int_t exe=0)
Int_t CleanUp ()
void Printf (const char *txt)
void Printf (const char *txt, Long_t i)
void Printf (const char *txt, void *i)
Int_t MakeFun (char *funname)
void XAction ()

Friends

class TThreadImp
class TPosixThread
class TThreadTimer
class TThreadCleaner

Member Enumeration Documentation

enum TThread::EPriority
 

Enumeration values:
kLowPriority 
kNormalPriority 
kHighPriority 

Definition at line 53 of file TThread.h.

Referenced by GetPriority().

enum TThread::EState
 

Enumeration values:
kInvalidState 
kNewState 
kRunningState 
kTerminatedState 
kFinishedState 
kCancelingState 
kCanceledState 
kDeletingState 

Definition at line 59 of file TThread.h.

Referenced by GetState().


Constructor & Destructor Documentation

TThread::TThread void *(*    fn)(void *),
void *    arg = 0,
EPriority    pri = kNormalPriority
 

TThread::TThread void(*    fn)(void *),
void *    arg = 0,
EPriority    pri = kNormalPriority
 

TThread::TThread Int_t    id = 0
 

TThread::TThread const char *    thname,
void *(*    fn)(void *),
void *    arg = 0,
EPriority    pri = kNormalPriority
 

TThread::TThread const char *    thname,
void(*    fn)(void *),
void *    arg = 0,
EPriority    pri = kNormalPriority
 

virtual TThread::~TThread   [virtual]
 


Member Function Documentation

Int_t TThread::Kill  
 

Int_t TThread::Run void *    arg = 0
 

void TThread::SetPriority EPriority    pri
 

void TThread::Delete Option_t *    option = "" [virtual]
 

Reimplemented from TObject.

Definition at line 119 of file TThread.h.

References TObject::Delete().

EPriority TThread::GetPriority   const
 

Definition at line 120 of file TThread.h.

References EPriority.

EState TThread::GetState   const
 

Definition at line 121 of file TThread.h.

References EState.

Long_t TThread::GetId   const
 

Definition at line 122 of file TThread.h.

void TThread::Ps  
 

Referenced by ps().

void TThread::ps  
 

Definition at line 124 of file TThread.h.

References Ps().

Long_t TThread::GetJoindId   const
 

Definition at line 125 of file TThread.h.

void TThread::SetJoinId TThread *    tj
 

void TThread::SetJoinId Long_t    jid
 

Long_t TThread::Join Long_t    id,
void **    ret = 0
[static]
 

Long_t TThread::Join void **    ret = 0 [static]
 

Int_t TThread::Exit void *    ret = 0 [static]
 

Int_t TThread::Exists   [static]
 

TThread* TThread::GetThread Long_t    id [static]
 

TThread* TThread::GetThread const char *    name [static]
 

Int_t TThread::Lock   [static]
 

Int_t TThread::TryLock   [static]
 

Int_t TThread::UnLock   [static]
 

TThread* TThread::Self   [static]
 

Long_t TThread::SelfId   [static]
 

Int_t TThread::Sleep ULong_t    secs,
ULong_t    nanos = 0
[static]
 

Int_t TThread::GetTime ULong_t *    absSec,
ULong_t *    absNanoSec
[static]
 

void TThread::Debu const char *    txt [static]
 

Int_t TThread::Delete TThread *&    th [static]
 

void** TThread::Tsd void *    dflt,
Int_t    k
[static]
 

Int_t TThread::Kill Long_t    id [static]
 

Int_t TThread::Kill const char *    name [static]
 

Int_t TThread::SetCancelOff   [static]
 

Int_t TThread::SetCancelOn   [static]
 

Int_t TThread::SetCancelAsynchronous   [static]
 

Int_t TThread::SetCancelDeferred   [static]
 

Int_t TThread::CancelPoint   [static]
 

Int_t TThread::CleanUpPush void *    free,
void *    arg = 0
[static]
 

Int_t TThread::CleanUpPop Int_t    exe = 0 [static]
 

Int_t TThread::CleanUp   [static]
 

void TThread::Printf const char *    txt [static]
 

Referenced by Printf().

void TThread::Printf const char *    txt,
Long_t    i
[static]
 

void TThread::Printf const char *    txt,
void *    i
[static]
 

Definition at line 169 of file TThread.h.

References Printf().

Int_t TThread::MakeFun char *    funname [static]
 

void TThread::XAction   [static]
 


Friends And Related Function Documentation

friend class TThreadImp [friend]
 

Definition at line 46 of file TThread.h.

friend class TPosixThread [friend]
 

Definition at line 47 of file TThread.h.

friend class TThreadTimer [friend]
 

Definition at line 48 of file TThread.h.

friend class TThreadCleaner [friend]
 

Definition at line 49 of file TThread.h.


The documentation for this class was generated from the following file:
Generated on Thu Dec 18 15:07:19 2003 for ROOT by doxygen1.2.16