CUBRID Engine  latest
cubmonitor::atomic_primitive< time_rep > Class Template Reference

#include <monitor_statistic.hpp>

Collaboration diagram for cubmonitor::atomic_primitive< time_rep >:
Collaboration graph

Public Types

using rep = time_rep
 

Public Member Functions

 atomic_primitive (time_rep value=time_rep())
 
atomic_primitiveoperator= (const atomic_primitive &other)
 
void fetch (statistic_value *destination, fetch_mode mode=FETCH_GLOBAL) const
 
std::size_t get_statistics_count (void) const
 
time_rep get_value (fetch_mode mode=FETCH_GLOBAL) const
 

Protected Member Functions

void set_value (const time_rep &value)
 
void fetch_add (const time_rep &value)
 
bool compare_exchange (time_rep &compare_value, const time_rep &replace_value)
 

Protected Attributes

std::atomic< time_rep::rep > m_value
 

Detailed Description

template<>
class cubmonitor::atomic_primitive< time_rep >

Definition at line 221 of file monitor_statistic.hpp.

Member Typedef Documentation

Constructor & Destructor Documentation

Definition at line 226 of file monitor_statistic.hpp.

Member Function Documentation

bool cubmonitor::atomic_primitive< time_rep >::compare_exchange ( time_rep compare_value,
const time_rep replace_value 
)
inlineprotected

Definition at line 271 of file monitor_statistic.hpp.

References cubmonitor::primitive< Rep >::m_value.

void cubmonitor::atomic_primitive< time_rep >::fetch_add ( const time_rep value)
inlineprotected

Definition at line 265 of file monitor_statistic.hpp.

References cubmonitor::primitive< Rep >::m_value.

std::size_t cubmonitor::atomic_primitive< time_rep >::get_statistics_count ( void  ) const
inline

Definition at line 240 of file monitor_statistic.hpp.

void cubmonitor::atomic_primitive< time_rep >::set_value ( const time_rep value)
inlineprotected

Definition at line 260 of file monitor_statistic.hpp.

References cubmonitor::primitive< Rep >::m_value.

Member Data Documentation

std::atomic<time_rep::rep> cubmonitor::atomic_primitive< time_rep >::m_value
protected

Definition at line 277 of file monitor_statistic.hpp.


The documentation for this class was generated from the following file: