From f57c87ac310b3aa47ad3bd52f577dea2172b97d1 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 22 Apr 2009 23:21:39 +0000 Subject: [PATCH] Added creation and deletion time getters to Team and Thread. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30341 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/debuganalyzer/Model.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/apps/debuganalyzer/Model.h b/src/apps/debuganalyzer/Model.h index aa806ea0c7..7df322c11f 100644 --- a/src/apps/debuganalyzer/Model.h +++ b/src/apps/debuganalyzer/Model.h @@ -61,6 +61,9 @@ public: inline team_id ID() const; + inline bigtime_t CreationTime() const; + inline bigtime_t DeletionTime() const; + bool AddThread(Thread* thread); inline void SetDeletionTime(bigtime_t time); @@ -90,6 +93,9 @@ public: inline thread_id ID() const; inline const char* Name() const; + inline bigtime_t CreationTime() const; + inline bigtime_t DeletionTime() const; + inline void SetDeletionTime(bigtime_t time); static inline int CompareByID(const Thread* a, const Thread* b); @@ -117,6 +123,20 @@ Model::Team::ID() const } +bigtime_t +Model::Team::CreationTime() const +{ + return fCreationTime; +} + + +bigtime_t +Model::Team::DeletionTime() const +{ + return fDeletionTime; +} + + void Model::Team::SetDeletionTime(bigtime_t time) { @@ -152,6 +172,20 @@ Model::Thread::Name() const } +bigtime_t +Model::Thread::CreationTime() const +{ + return fCreationTime; +} + + +bigtime_t +Model::Thread::DeletionTime() const +{ + return fDeletionTime; +} + + void Model::Thread::SetDeletionTime(bigtime_t time) {