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

Method MockTimer

test/test_repeated_timer_task.cpp:15–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13class MockTimer : public braft::RepeatedTimerTask {
14protected:
15 MockTimer()
16 : _blocking(false)
17 , _run_times(0)
18 , _on_destroy_times(0)
19 , _adjust_timeout_times(0)
20 {}
21 ~MockTimer() { destroy(); }
22
23 void run() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected