MCPcopy Create free account
hub / github.com/baidu/braft / Counter

Method Counter

example/counter/server.cpp:65–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63class Counter : public braft::StateMachine {
64public:
65 Counter()
66 : _node(NULL)
67 , _value(0)
68 , _leader_term(-1)
69 {}
70 ~Counter() {
71 delete _node;
72 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected