Add periodic sync check when syncing LF<>another DB
This commit is contained in:
parent
760ae07d72
commit
55087521f6
4 changed files with 63 additions and 3 deletions
|
@ -33,6 +33,7 @@
|
|||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <set>
|
||||
#include <thread>
|
||||
|
||||
namespace ZeroTier {
|
||||
|
||||
|
@ -72,6 +73,8 @@ public:
|
|||
|
||||
private:
|
||||
DB::ChangeListener *const _listener;
|
||||
std::atomic_bool _running;
|
||||
std::thread _syncCheckerThread;
|
||||
std::vector< std::shared_ptr< DB > > _dbs;
|
||||
mutable std::mutex _dbs_l;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue