proxygen
Count Class Reference

Public Member Functions

void clear () noexcept
 
int ctors () const noexcept
 
int dtors () const noexcept
 
int retires () const noexcept
 
void inc_ctors () noexcept
 
void inc_dtors () noexcept
 
void inc_retires () noexcept
 

Private Attributes

std::atomic< int > ctors_ {0}
 
std::atomic< int > dtors_ {0}
 
std::atomic< int > retires_ {0}
 

Detailed Description

Count

Definition at line 57 of file HazptrTest.cpp.

Member Function Documentation

void Count::clear ( )
inlinenoexcept

Definition at line 63 of file HazptrTest.cpp.

References ctors_, dtors_, and retires_.

Referenced by auto_retire_test(), basic_objects_test(), basic_protection_test(), cleanup_test(), folly::padded::Adaptor< IntNodeVec >::clear(), linked_test(), mt_linked_test(), priv_dtor_test(), and TEST().

63  {
64  ctors_.store(0);
65  dtors_.store(0);
66  retires_.store(0);
67  }
std::atomic< int > dtors_
Definition: HazptrTest.cpp:59
std::atomic< int > ctors_
Definition: HazptrTest.cpp:58
std::atomic< int > retires_
Definition: HazptrTest.cpp:60
int Count::ctors ( ) const
inlinenoexcept

Definition at line 69 of file HazptrTest.cpp.

References ctors_.

Referenced by auto_retire_test(), basic_objects_test(), basic_protection_test(), cleanup_test(), linked_test(), mt_linked_test(), and priv_dtor_test().

69  {
70  return ctors_.load();
71  }
std::atomic< int > ctors_
Definition: HazptrTest.cpp:58
int Count::dtors ( ) const
inlinenoexcept

Definition at line 73 of file HazptrTest.cpp.

References dtors_.

Referenced by auto_retire_test(), basic_objects_test(), basic_protection_test(), cleanup_test(), linked_test(), mt_linked_test(), priv_dtor_test(), and TEST().

73  {
74  return dtors_.load();
75  }
std::atomic< int > dtors_
Definition: HazptrTest.cpp:59
void Count::inc_ctors ( )
inlinenoexcept

Definition at line 81 of file HazptrTest.cpp.

References ctors_.

Referenced by Node< Atom >::Node(), NodeAuto< Atom >::NodeAuto(), and NodeRC< Mutable, Atom >::NodeRC().

81  {
82  ctors_.fetch_add(1);
83  }
std::atomic< int > ctors_
Definition: HazptrTest.cpp:58
void Count::inc_dtors ( )
inlinenoexcept

Definition at line 85 of file HazptrTest.cpp.

References dtors_.

Referenced by Node< Atom >::~Node(), NodeAuto< Atom >::~NodeAuto(), and NodeRC< Mutable, Atom >::~NodeRC().

85  {
86  dtors_.fetch_add(1);
87  }
std::atomic< int > dtors_
Definition: HazptrTest.cpp:59
void Count::inc_retires ( )
inlinenoexcept

Definition at line 89 of file HazptrTest.cpp.

References retires_.

89  {
90  retires_.fetch_add(1);
91  }
std::atomic< int > retires_
Definition: HazptrTest.cpp:60
int Count::retires ( ) const
inlinenoexcept

Definition at line 77 of file HazptrTest.cpp.

References retires_.

77  {
78  return retires_.load();
79  }
std::atomic< int > retires_
Definition: HazptrTest.cpp:60

Member Data Documentation

std::atomic<int> Count::ctors_ {0}
private

Definition at line 58 of file HazptrTest.cpp.

Referenced by clear(), ctors(), and inc_ctors().

std::atomic<int> Count::dtors_ {0}
private

Definition at line 59 of file HazptrTest.cpp.

Referenced by clear(), dtors(), and inc_dtors().

std::atomic<int> Count::retires_ {0}
private

Definition at line 60 of file HazptrTest.cpp.

Referenced by clear(), inc_retires(), and retires().


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