22 virtual Int_t
Thread() = 0;
32 return reinterpret_cast<void*
>(th->
Thread());
36 MThread(TThread::EPriority pri = TThread::kNormalPriority) :
37 fThread(
MapThread, this, pri), fNumCleanups(0) { }
38 MThread(
const char *thname, TThread::EPriority pri = TThread::kNormalPriority) :
39 fThread(thname,
MapThread, this, pri), fNumCleanups(0) { }
43 Int_t
RunThread(
void *arg = 0) {
return fThread.Run(arg); }
49 const Int_t rc = fThread.Kill();
52 return fThread.Join(ret);
67 Bool_t
IsThreadRunning()
const {
return fThread.GetState()==TThread::kRunningState; }
68 Bool_t
IsThreadCanceled()
const {
return fThread.GetState()==TThread::kCancelingState; }
73 TThread::SetCancelOn();
75 TThread::SetCancelOff();
TString GetThreadStateStr() const
TThread::EState GetThreadState() const
Int_t CancelThread(void **ret=0)
MThread(TThread::EPriority pri=TThread::kNormalPriority)
static void * MapThread(void *arg)
Long_t GetThreadId() const
Bool_t IsThreadRunning() const
static void MapCleanUp(void *arg)
static void Sleep(UInt_t us)
MThread(const char *thname, TThread::EPriority pri=TThread::kNormalPriority)
Int_t RunThread(void *arg=0)
Bool_t IsThreadCanceled() const