Derecho  0.9
Distributed systems toolkit for RDMA
Public Member Functions | Public Attributes | Private Attributes | List of all members
HLC Class Reference

#include <HLC.hpp>

Public Member Functions

 noexcept (false)
 
 HLC (uint64_t _r, uint64_t _l)
 
virtual ~HLC () noexcept(false)
 
virtual void tick (bool thread_safe=true) noexcept(false)
 
virtual void tick (const HLC &msgHlc, bool thread_safe=true) noexcept(false)
 
virtual bool operator> (const HLC &hlc) const noexcept(true)
 
virtual bool operator< (const HLC &hlc) const noexcept(true)
 
virtual bool operator== (const HLC &hlc) const noexcept(true)
 
virtual bool operator>= (const HLC &hlc) const noexcept(true)
 
virtual bool operator<= (const HLC &hlc) const noexcept(true)
 
virtual void operator= (const HLC &hlc) noexcept(true)
 

Public Attributes

uint64_t m_rtc_us
 
uint64_t m_logic
 

Private Attributes

pthread_spinlock_t m_oLck
 

Detailed Description

Definition at line 7 of file HLC.hpp.

Constructor & Destructor Documentation

◆ HLC()

HLC::HLC ( uint64_t  _r,
uint64_t  _l 
)
noexcept

Definition at line 15 of file HLC.cpp.

◆ ~HLC()

HLC::~HLC ( )
virtualnoexcept

Definition at line 29 of file HLC.cpp.

Member Function Documentation

◆ noexcept()

HLC::noexcept ( false  )

◆ operator<()

bool HLC::operator< ( const HLC hlc) const
virtualnoexcept

Definition at line 91 of file HLC.cpp.

◆ operator<=()

bool HLC::operator<= ( const HLC hlc) const
virtualnoexcept

Definition at line 106 of file HLC.cpp.

◆ operator=()

void HLC::operator= ( const HLC hlc)
virtualnoexcept

Definition at line 111 of file HLC.cpp.

◆ operator==()

bool HLC::operator== ( const HLC hlc) const
virtualnoexcept

Definition at line 96 of file HLC.cpp.

◆ operator>()

bool HLC::operator> ( const HLC hlc) const
virtualnoexcept

Definition at line 86 of file HLC.cpp.

◆ operator>=()

bool HLC::operator>= ( const HLC hlc) const
virtualnoexcept

Definition at line 101 of file HLC.cpp.

◆ tick() [1/2]

void HLC::tick ( bool  thread_safe = true)
virtualnoexcept

Definition at line 44 of file HLC.cpp.

◆ tick() [2/2]

void HLC::tick ( const HLC msgHlc,
bool  thread_safe = true 
)
virtualnoexcept

Definition at line 62 of file HLC.cpp.

Member Data Documentation

◆ m_logic

uint64_t HLC::m_logic

Definition at line 13 of file HLC.hpp.

◆ m_oLck

pthread_spinlock_t HLC::m_oLck
private

Definition at line 9 of file HLC.hpp.

◆ m_rtc_us

uint64_t HLC::m_rtc_us

Definition at line 12 of file HLC.hpp.


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