Go to the documentation of this file.
   17 #ifndef USGOV_77adc1ef338434dcbe2fd89f5a86d54ba6fe219dcb84f80d6903a1ee04fc73ea 
   18 #define USGOV_77adc1ef338434dcbe2fd89f5a86d54ba6fe219dcb84f80d6903a1ee04fc73ea 
   20 #include <condition_variable> 
   28 namespace us{ 
namespace gov {
 
   41             virtual bool patch_db(vector<hash_t>& patches)=0;
 
   50         void dump(ostream& os) 
const;
 
   56         void wait(
const chrono::steady_clock::duration& d);
 
   63         condition_variable 
cv;
 
   72         atomic<bool> file_arrived{
false};
 
   77                 uint32_t trigger_sync_event{0};
 
   78                 uint32_t db_reset_countdowns{0};
 
   80                 void dump(ostream&os) 
const;
 
   82             static counters_t counters;
 
  
 
void update(const hash_t &tail)
hash_t head
Definition: syncd.h:66
condition_variable cv
Definition: syncd.h:63
virtual ~actuator()
Definition: syncd.h:37
Definition: ripemd160.h:38
void logline(ostream &os) const
virtual bool get_prev(const hash_t &h, hash_t &prev) const =0
void update(const hash_t &head, const hash_t &tail)
const hash_t & tip() const
bgtask t
Definition: syncd.h:33
hash_t tail
Definition: syncd.h:68
actuator * d
Definition: syncd.h:62
mutex mx_wait4file
Definition: syncd.h:71
virtual int query_block(const hash_t &hash)=0
mutex mx
Definition: syncd.h:64
syncd_t(const syncd_t &)=delete
condition_variable cv_wait4file
Definition: syncd.h:70
void dump(ostream &os) const
void signal_file_arrived()
void wait(const chrono::steady_clock::duration &d)
diff::hash_t hash_t
Definition: syncd.h:34
hash_t cur
Definition: syncd.h:67
virtual bool patch_db(vector< hash_t > &patches)=0