diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-08-08 17:20:50 -0500 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-08-08 17:20:50 -0500 |
| commit | 55087521f6db9aaa874cccd86e424d77e6c820c3 (patch) | |
| tree | fdc87b595d29c8eb383ab85aa0173259c0558d25 /controller/DBMirrorSet.hpp | |
| parent | 760ae07d7243b8e7ff6ec03cf508058c287c219f (diff) | |
| download | infinitytier-55087521f6db9aaa874cccd86e424d77e6c820c3.tar.gz infinitytier-55087521f6db9aaa874cccd86e424d77e6c820c3.zip | |
Add periodic sync check when syncing LF<>another DB
Diffstat (limited to 'controller/DBMirrorSet.hpp')
| -rw-r--r-- | controller/DBMirrorSet.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/controller/DBMirrorSet.hpp b/controller/DBMirrorSet.hpp index aee598af..23cb25e7 100644 --- a/controller/DBMirrorSet.hpp +++ b/controller/DBMirrorSet.hpp @@ -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; }; |
