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

Class KeepMasterThread

phxqueue/scheduler/keepmasterthread.h:23–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23class KeepMasterThread {
24 public:
25 KeepMasterThread(Scheduler *const scheduler);
26 virtual ~KeepMasterThread();
27
28 void Run();
29 void Stop();
30
31 comm::RetCode InitMasterRate();
32 comm::RetCode AdjustMasterRate();
33 comm::RetCode KeepMaster();
34
35 private:
36 void DoRun();
37 comm::RetCode GetLockID(int &lock_id);
38
39 class KeepMasterThreadImpl;
40 std::unique_ptr<KeepMasterThreadImpl> impl_;
41};
42
43
44} // namespace scheduler

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected