diff options
Diffstat (limited to 'controller/RethinkDB.hpp')
-rw-r--r-- | controller/RethinkDB.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/controller/RethinkDB.hpp b/controller/RethinkDB.hpp index b1049ac3..60f04c5b 100644 --- a/controller/RethinkDB.hpp +++ b/controller/RethinkDB.hpp @@ -41,6 +41,7 @@ public: virtual ~RethinkDB(); virtual bool waitForReady(); + virtual bool isReady(); virtual void save(nlohmann::json *orig,nlohmann::json &record); virtual void eraseNetwork(const uint64_t networkId); virtual void eraseMember(const uint64_t networkId,const uint64_t memberId); @@ -72,8 +73,7 @@ protected: std::thread _heartbeatThread; mutable std::mutex _readyLock; // locked until ready - std::atomic<int> _ready; - std::atomic<int> _run; + std::atomic<int> _ready,_connected,_run; mutable volatile bool _waitNoticePrinted; }; |