summaryrefslogtreecommitdiff
path: root/ace/Sample_History.inl
blob: 92d70ac83ef5dd931b69255d192a7b142e3dc04d (plain)
1
2
3
4
5
6
7
8
9
10
11
// $Id$

ACE_INLINE int
ACE_Sample_History::sample (ACE_UINT64 value)
{
  if (this->sample_count_ >= this->max_samples_)
    return -1;

  this->samples_[this->sample_count_++] = value;
  return 0;
}