Go to the documentation of this file.
17 #ifndef USGOV_6110ca70156c39f06bccb0b02bb98b63bef265d6284d970e13ddddb69c4a633b
18 #define USGOV_6110ca70156c39f06bccb0b02bb98b63bef265d6284d970e13ddddb69c4a633b
24 #include <condition_variable>
27 namespace us{
namespace gov {
35 bool operator < (
const calndx& other)
const;
40 static constexpr chrono::seconds cycle_period {60};
41 static constexpr chrono::seconds idle_wakeup {1};
42 static constexpr chrono::seconds relay_interval {15};
mutex mx
Definition: calendar.h:50
#define unlikely(x)
Definition: likely.h:30
uint64_t block_opening
Definition: calendar.h:52
uint64_t last_processed
Definition: calendar.h:54
calndx(evidence *e)
Definition: calendar.cpp:80
virtual hash_t compute_hash() const =0
bool operator<(const calndx &other) const
Definition: calendar.cpp:83
us::gov::engine::calendar_t c
Definition: calendar.cpp:28
evidence * e
Definition: calendar.h:36
Definition: calendar.h:39
uint64_t block_closure
Definition: calendar.h:53
uint64_t ts
Definition: evidence.h:53
int schedule(evidence *e)
void clear_until(uint64_t)
uint64_t expires
Definition: evidence.h:54
#define likely(x)
Definition: likely.h:29
Definition: calendar.h:33
Definition: evidence.h:31
calendar_t(const calendar_t &)=delete
#define log
Definition: gov.h:83