FACT++  1.0
TString MThread::GetThreadStateStr ( ) const

Definition at line 41 of file MThread.cc.

Referenced by GetThreadState().

42 {
43  switch (fThread.GetState())
44  {
45  case TThread::kInvalidState:
46  return "Invalid - thread was not created properly";
47  case TThread::kNewState:
48  return "New - thread object exists but hasn't started";
49  case TThread::kRunningState:
50  return "Running - thread is running";
51  case TThread::kTerminatedState:
52  return "Terminated - thread has terminated but storage has not yet been reclaimed (i.e. waiting to be joined)";
53  case TThread::kFinishedState:
54  return "Finished - thread has finished";
55  case TThread::kCancelingState:
56  return "Canceling - thread in process of canceling";
57  case TThread::kCanceledState:
58  return "Canceled - thread has been canceled";
59  case TThread::kDeletingState:
60  return "Deleting - thread in process of deleting";
61  };
62  return "Unknown";
63 }
TThread fThread
Definition: MThread.h:11

+ Here is the caller graph for this function: