MCPcopy Create free account
hub / github.com/Tencent/phxqueue / KeepMasterThread

Class KeepMasterThread

phxqueue/lock/keepmasterthread.h:23–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23class KeepMasterThread {
24 public:
25 KeepMasterThread(Lock *lock);
26 virtual ~KeepMasterThread();
27
28 void Run();
29 void Stop();
30
31 private:
32 void DoRun();
33 comm::RetCode InitMasterRate();
34 comm::RetCode AdjustMasterRate();
35 comm::RetCode KeepMaster();
36 //comm::RetCode GetIdxInGroupAndGroupSize(int &idx_in_group, int &group_size);
37 comm::RetCode ProposeMaster(const int paxos_group_id, const comm::proto::Addr addr);
38 comm::RetCode UpdatePaxosArgs();
39
40 class KeepMasterThreadImpl;
41 std::unique_ptr<KeepMasterThreadImpl> impl_;
42};
43
44
45} // namespace lock

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected