added ace + vcproj for win
--HG-- branch : trunk
This commit is contained in:
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// $Id: Sample_History.inl 80826 2008-03-04 14:51:23Z wotte $
|
||||
|
||||
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
ACE_INLINE ACE_UINT64
|
||||
ACE_Sample_History::get_sample (size_t i) const
|
||||
{
|
||||
if (this->sample_count_ <= i)
|
||||
return 0;
|
||||
|
||||
return this->samples_[i];
|
||||
}
|
||||
|
||||
ACE_END_VERSIONED_NAMESPACE_DECL
|
||||
Reference in New Issue
Block a user