CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
FastTimerService::AtomicResources Struct Reference

Public Member Functions

 AtomicResources ()
 
 AtomicResources (AtomicResources const &other)
 
AtomicResources operator+ (AtomicResources const &other) const
 
AtomicResourcesoperator+= (AtomicResources const &other)
 
AtomicResourcesoperator= (AtomicResources const &other)
 
void reset ()
 

Public Attributes

std::atomic< uint64_t > allocated
 
std::atomic< uint64_t > deallocated
 
std::atomic< boost::chrono::nanoseconds::rep > time_real
 
std::atomic< boost::chrono::nanoseconds::rep > time_thread
 

Detailed Description

Definition at line 250 of file FastTimerService.h.

Constructor & Destructor Documentation

FastTimerService::AtomicResources::AtomicResources ( )

Definition at line 108 of file FastTimerService.cc.

108  :
109  time_thread(0ul),
110  time_real(0ul),
111  allocated(0ul),
112  deallocated(0ul)
113 { }
std::atomic< uint64_t > deallocated
std::atomic< uint64_t > allocated
std::atomic< boost::chrono::nanoseconds::rep > time_thread
std::atomic< boost::chrono::nanoseconds::rep > time_real
FastTimerService::AtomicResources::AtomicResources ( AtomicResources const &  other)

Definition at line 115 of file FastTimerService.cc.

115  :
116  time_thread(other.time_thread.load()),
117  time_real(other.time_real.load()),
118  allocated(other.allocated.load()),
119  deallocated(other.deallocated.load())
120 { }
std::atomic< uint64_t > deallocated
std::atomic< uint64_t > allocated
std::atomic< boost::chrono::nanoseconds::rep > time_thread
std::atomic< boost::chrono::nanoseconds::rep > time_real

Member Function Documentation

FastTimerService::AtomicResources FastTimerService::AtomicResources::operator+ ( AtomicResources const &  other) const
FastTimerService::AtomicResources & FastTimerService::AtomicResources::operator+= ( AtomicResources const &  other)

Definition at line 140 of file FastTimerService.cc.

References allocated, deallocated, time_real, and time_thread.

140  {
141  time_thread += other.time_thread.load();
142  time_real += other.time_real.load();
143  allocated += other.allocated.load();
144  deallocated += other.deallocated.load();
145  return *this;
146 }
std::atomic< uint64_t > deallocated
std::atomic< uint64_t > allocated
std::atomic< boost::chrono::nanoseconds::rep > time_thread
std::atomic< boost::chrono::nanoseconds::rep > time_real
FastTimerService::AtomicResources & FastTimerService::AtomicResources::operator= ( AtomicResources const &  other)

Definition at line 131 of file FastTimerService.cc.

References allocated, deallocated, time_real, and time_thread.

131  {
132  time_thread = other.time_thread.load();
133  time_real = other.time_real.load();
134  allocated = other.allocated.load();
135  deallocated = other.deallocated.load();
136  return *this;
137 }
std::atomic< uint64_t > deallocated
std::atomic< uint64_t > allocated
std::atomic< boost::chrono::nanoseconds::rep > time_thread
std::atomic< boost::chrono::nanoseconds::rep > time_real
void FastTimerService::AtomicResources::reset ( void  )

Definition at line 123 of file FastTimerService.cc.

References allocated, deallocated, time_real, and time_thread.

Referenced by FastTimerService::ResourcesPerJob::reset().

123  {
124  time_thread = 0ul;
125  time_real = 0ul;
126  allocated = 0ul;
127  deallocated = 0ul;
128 }
std::atomic< uint64_t > deallocated
std::atomic< uint64_t > allocated
std::atomic< boost::chrono::nanoseconds::rep > time_thread
std::atomic< boost::chrono::nanoseconds::rep > time_real

Member Data Documentation

std::atomic<uint64_t> FastTimerService::AtomicResources::allocated
std::atomic<uint64_t> FastTimerService::AtomicResources::deallocated
std::atomic<boost::chrono::nanoseconds::rep> FastTimerService::AtomicResources::time_real
std::atomic<boost::chrono::nanoseconds::rep> FastTimerService::AtomicResources::time_thread