Derecho  0.9
Distributed systems toolkit for RDMA
Macros | Functions
HLC.cpp File Reference
#include <derecho/persistent/HLC.hpp>
#include <errno.h>
#include <time.h>
Include dependency graph for HLC.cpp:

Go to the source code of this file.

Macros

#define HLC_LOCK
 
#define HLC_UNLOCK
 

Functions

uint64_t read_rtc_us () noexcept(false)
 

Macro Definition Documentation

◆ HLC_LOCK

#define HLC_LOCK
Value:
if(pthread_spin_lock(&this->m_oLck) != 0) { \
throw HLC_EXP_SPIN_LOCK(errno); \
}
#define HLC_EXP_SPIN_LOCK(x)
Definition: HLC.hpp:45

Definition at line 35 of file HLC.cpp.

◆ HLC_UNLOCK

#define HLC_UNLOCK
Value:
if(pthread_spin_unlock(&this->m_oLck) != 0) { \
throw HLC_EXP_SPIN_UNLOCK(errno); \
}
#define HLC_EXP_SPIN_UNLOCK(x)
Definition: HLC.hpp:46

Definition at line 39 of file HLC.cpp.

Function Documentation

◆ read_rtc_us()

uint64_t read_rtc_us ( )
noexcept

Definition at line 6 of file HLC.cpp.