Added ThreadWaitObject getters for the wait count and time.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30448 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2009-04-26 22:37:25 +00:00
parent 8adb85f8b7
commit e9b47e4853

View File

@ -160,6 +160,9 @@ public:
inline const char* Name() const;
inline addr_t ReferencedObject();
inline int64 Waits() const;
inline bigtime_t TotalWaitTime() const;
void AddWait(bigtime_t waitTime);
private:
@ -492,6 +495,20 @@ Model::ThreadWaitObject::ReferencedObject()
}
int64
Model::ThreadWaitObject::Waits() const
{
return fWaits;
}
bigtime_t
Model::ThreadWaitObject::TotalWaitTime() const
{
return fTotalWaitTime;
}
// #pragma mark - ThreadWaitObjectGroup