Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / examples / Kokyu_dsrt_schedulers / Task_Stats.inl
blob4346661b2bb463dc0807aaac96dfdf7384faa9e5
1 #include "ace/Log_Msg.h"
3 ACE_INLINE int
4 Task_Stats::sample (ACE_UINT32 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;