simple-thread: give a name() function for debugging w/the SimpleThread object
This commit is contained in:
parent
76c60c5f93
commit
b2e5152e16
1 changed files with 5 additions and 0 deletions
|
@ -114,6 +114,11 @@ class SimpleThread : public ThreadState
|
|||
bool predicate;
|
||||
|
||||
public:
|
||||
std::string name() const
|
||||
{
|
||||
return csprintf("%s.[tid:%i]", cpu->name(), tc->threadId());
|
||||
}
|
||||
|
||||
// pointer to CPU associated with this SimpleThread
|
||||
BaseCPU *cpu;
|
||||
|
||||
|
|
Loading…
Reference in a new issue