Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / examples / RTScheduling / Task_Stats.inl
blob145f120f49a081c43bbbf0f39c4e56fcf85aaaa0
1 #include "ace/Log_Msg.h"
3 ACE_INLINE int
4 Task_Stats::sample (time_t thr_run_time, int thr_count)
6   if (this->samples_count_ >= this->max_samples_)
7   {
8     ACE_DEBUG ((LM_DEBUG, "Task_Stats::sample ret -1\n"));
9     return -1;
10   }
12   this->thr_run_time_[this->samples_count_] = thr_run_time;
13   this->thr_count_[this->samples_count_] = thr_count;
15   this->samples_count_++;
16   return 0;