3 #ifndef ZKWRAPPER_INCLUDE_ZK_LOCK_H_
4 #define ZKWRAPPER_INCLUDE_ZK_LOCK_H_
6 #include <easylogging++.h>
10 #include <condition_variable>
14 #include <boost/algorithm/string.hpp>
15 #include "zkwrapper.h"
34 zkWrapper(zkWrapper), path_to_lock(path) {}
50 std::string path_to_lock;
52 static const char lock_path[];
54 std::string locknode_with_seq;
56 static const std::string CLASS_NAME;
58 #endif // ZKWRAPPER_INCLUDE_ZK_LOCK_H_
int lock()
Definition: zk_lock.cc:7
Definition: zkwrapper.h:62
int unlock()
Definition: zk_lock.cc:97
ZKLock(ZKWrapper &zkWrapper, std::string path)
Definition: zk_lock.h:33