//Task_Stats.inl,v 1.1 2003/10/08 13:26:32 venkita Exp

ACE_INLINE int
Task_Stats::sample (ACE_UINT32 thr_run_time, int thr_count)
{
  if (this->samples_count_ >= this->max_samples_)
  {
    ACE_DEBUG ((LM_DEBUG, "Task_Stats::sample ret -1\n"));
    return -1;
   }

  this->thr_run_time_[this->samples_count_] = thr_run_time;
  this->thr_count_[this->samples_count_] = thr_count;

  this->samples_count_++;
  return 0;
}
