task_stats.inl

来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· INL 代码 · 共 18 行

INL
18
字号
//Task_Stats.inl,v 1.2 2003/07/24 07:04:16 yamuna 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;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?