CMS 3D CMS Logo

Public Member Functions | Protected Attributes

StorageAccount::Stamp Class Reference

#include <StorageAccount.h>

List of all members.

Public Member Functions

 Stamp (Counter &counter)
void tick (double amount=0.) const

Protected Attributes

Counterm_counter
double m_start

Detailed Description

Definition at line 20 of file StorageAccount.h.


Constructor & Destructor Documentation

StorageAccount::Stamp::Stamp ( Counter counter)

Definition at line 110 of file StorageAccount.cc.

References StorageAccount::Counter::attempts, CommonMethods::lock(), m_counter, and s_mutex.

  : m_counter (counter),
    m_start (timeRealNanoSecs ())
{
  boost::mutex::scoped_lock lock (s_mutex);
  m_counter.attempts++;
}

Member Function Documentation

void StorageAccount::Stamp::tick ( double  amount = 0.) const

Member Data Documentation

Definition at line 26 of file StorageAccount.h.

Referenced by Stamp().

double StorageAccount::Stamp::m_start [protected]

Definition at line 27 of file StorageAccount.h.