This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <vector> | |
#include <deque> | |
#include <thread> | |
#include <mutex> | |
#include <condition_variable> | |
#include <functional> | |
#include <future> | |
#include <iostream> | |
#include <random> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dataDir=/tmp/zookeeper | |
clientPort=2181 | |
initLimit=5 | |
syncLimit=2 | |
# Example of multiple zookeeper servers. | |
server.1=192.168.1.1:2889:3889 | |
server.2=192.168.1.2:2889:3889 | |
server.3=192.168.1.3:2889:3889 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Node.h | |
class Component; | |
class Node | |
{ | |
private: | |
std::unordered_set<Component*> m_components; | |
}; | |
// Component.h |